This is the array
criterion = [Tsai_Hill, Tsai_Wu, Hoffman, Fischer, Malmeister, Marin, Ashkenazi, Cowin];
[r,t] = max(criterion);
All of the elements in the array have a value and i know how to find the max value and at what position it is, but is there a way to use the index value to get the name of the element that is the max value.
i.e. if Tsai_Hill is the max value, it will give me the value and then instead of giving me the index, it gives me Tsai_hill?
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/524639-hi-i-need-help-trying-to-extract-the-name-of-a-value-associated-to-an-array#comment_847040
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/524639-hi-i-need-help-trying-to-extract-the-name-of-a-value-associated-to-an-array#comment_847040
Sign in to comment.