Borrar filtros
Borrar filtros

scale to percentage using maximum value

3 visualizaciones (últimos 30 días)
Roisin Loughnane
Roisin Loughnane el 30 de Oct. de 2017
Comentada: Roisin Loughnane el 30 de Oct. de 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?

Respuesta aceptada

Stephen23
Stephen23 el 30 de Oct. de 2017
>> 100*A/max(A)
ans =
0.46081 14.59551 100.00000 0.36907

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by