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