フィルターのクリア

scale to percentage using maximum value

3 ビュー (過去 30 日間)
Roisin Loughnane
Roisin Loughnane 2017 年 10 月 30 日
コメント済み: Roisin Loughnane 2017 年 10 月 30 日
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?

採用された回答

Stephen23
Stephen23 2017 年 10 月 30 日
>> 100*A/max(A)
ans =
0.46081 14.59551 100.00000 0.36907
  1 件のコメント
Roisin Loughnane
Roisin Loughnane 2017 年 10 月 30 日
Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by