There is a Problem with Minimum function, can any one help me?

It means you have a NaN in your vector. See for example

minimum([1,NaN,2])
1 Like