Indexing in a vector
2 views (last 30 days)
MOHAMED ABDULAZIM on 16 Aug 2020
I am trying to extract maximum value from a vector by max() function,however I need to know the index of this value in the vector in order to use this indexing in performing another operation by writing a script file.How to know the index of the element in the array?
More Answers (1)
Sara Boznik on 16 Aug 2020
fprintf(id,'Points %d in %d.\n',m(i),n(i));
fprintf(id,'Points %d in %d.\n',m,n);
Here is part of my code where we searching the min and max.