Max built in function

Hey, a simple one:
if I compute max(X) and X is a vector of n x m, what does max return? does it work like regular matlab functions in which the function will return a vector?

Thanks a lot !!!

Yes, to the extent possible, max will behave the same way MATLAB does. So for instance, if X is a matrix, then max(X) and max(X,[],1) will be a row vector, and max(X,[],2) will be a column vector.