Corresponding x and y values of a point

3 visualizzazioni (ultimi 30 giorni)
Hamed
Hamed il 15 Mag 2014
Commentato: Hamed il 22 Lug 2014
Dear freinds,
I am newbie in MATLAB and I will be grateful to have your support. I have multiplied two vectors to each other and found the maximum value of this multiplication.
P = I.*V; Pmpp = max(P);
Now I need to know the corresponding x and y values of Pmpp.
Thanks in advance

Risposta accettata

Image Analyst
Image Analyst il 15 Mag 2014
[Pmpp, indexOfMax] = max(P);
xOfMax = I(indexOfMax);
yOfMax = V(indexOfMax);
  3 Commenti
Image Analyst
Image Analyst il 15 Mag 2014
If that answered your question, can you mark it as "Accepted"?
Hamed
Hamed il 22 Lug 2014
Sorry that I have done it late :) Thanks again.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by