scale to percentage using maximum value

1 Ansicht (letzte 30 Tage)
Roisin Loughnane
Roisin Loughnane am 30 Okt. 2017
Kommentiert: Roisin Loughnane am 30 Okt. 2017
I have a matrix with a few values
A = [0.00432, 0.13683 0.93748 0.00346]
I want to assign a value of 100 the maximum value in A and scale the rest accordingly in order to view as percentages.
Any ideas?

Akzeptierte Antwort

Stephen23
Stephen23 am 30 Okt. 2017
>> 100*A/max(A)
ans =
0.46081 14.59551 100.00000 0.36907

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by