필터 지우기
필터 지우기

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by