I have the data sets MI and XLead and create a graph like this: plot(Xlead,MI)
That graph has a peak – I can find the MI value at the peak like this: maxMI = max(MI);, but how do I find the Xlead value for when MI is max?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The max function returns an array of two objects:
C – is the max value, I are the indices of the max value
So if you do:
then you should get the value of X for the max MI in the maxX