Skip to content

size_equal

general · scripts/general/size_equal.m

: tf = size_equal ()
: tf = size_equal (a)
: tf = size_equal (a, b, …)

Clean-room Octave-compat helper. MATLAB-valid % comments so the file parses under MATLAB-strict user addpath as well as under the shipped scripts tree. Return true if the dimensions of all arguments agree. Trailing singleton dimensions are ignored. With fewer than two arguments, return true.

MATLAB has no size_equal; portable code can compare size results directly.