find number of values in array matlab?Advertisement
I have a vector that looks something like this: f= [ . . . . 1990 1998 2001 2004 . . . .] and I would like to find the closest value to f=2000 ( which in this case could be 1998 or 2001 ) and the index (i) of this value in vector f ( f(i) ) How can I do that ? - read more
Arrays. As you probably already know, arrays in MATLAB are rectangular looking in any two dimensions. For example, for each row in a matrix (2-dimensional), there is the same number of elements - all rows have the same number of columns. - read more
Please vote if the answer you were given helped you or not, thats the best way to improve our algorithm. You can also submit an answer or check other resources.