MATLAB: How to use the min() and max() functions

MATLABmaximummin() max() matlabminimumnormalization

I am trying to use min() and max() to find the minimum and maximum values of a vector (attached to this post if you would like to try)
According to the Mathworks website, using minVal = min(FHNout); and maxVal = max(FHNout); should work.
However, when trying these commands, I get the following error:
??? Subscript indices must either be real positive integers or logicals.
Why am I getting this error and how do I fix it?
Thanks for your help

Best Answer

If you want to use min or max, then don't name a variable with the name min, or max.
which min -all
which max -all
What does that tell you?
Never use variable names that conflict with a function name.