MATLAB: Please explain this error

maximum

I'm using matlab 2012a.
When I tried the following command it gave me an error.
Can you please explain it to me?
Thanks
Command:
max(-3/2, 7, 1.4)
Error using max
MAX with two matrices to compare and a working dimension is not supported.

Best Answer

dav, I believe what you are trying to do is the following
max([-3/2, 7, 1.4])
The values you want to find the maximum of need to be arranged in arrary form, that's why the square brackets.
Related Question