get values from each column and create graphical
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Berfin Çetinkaya
el 31 de Mayo de 2022
Comentada: Voss
el 31 de Mayo de 2022
A matrix=
[4.37 43700 12866.8 14880.8 8.74 87400;...
1.4098 14098 22850 13683.4 2.8196 28196;...
3.0706 30706 32876 13051.8 6.1412 61412;...
2.821 28210 29452 17820 5.642 56420;...
1.79 17900 13034.4 20954 3.58 35800;...
3.3418 33418 25706 24970 6.6836 66836;...
2.298 22980 22604 25700 4.596 45960;...
2.3526 23526 20464 14938.8 4.7052 47052;...
2.11 21100 16099.2 5992 4.22 42200;...
3.1084 31084 15253.4 9787 6.2168 62168;...]
I have such a matrix. I want to find the minimum value in each column and create a graph from those values. What code can I do this with?
Thank you.
0 comentarios
Respuesta aceptada
Voss
el 31 de Mayo de 2022
A = ...
[4.37 43700 12866.8 14880.8 8.74 87400;...
1.4098 14098 22850 13683.4 2.8196 28196;...
3.0706 30706 32876 13051.8 6.1412 61412;...
2.821 28210 29452 17820 5.642 56420;...
1.79 17900 13034.4 20954 3.58 35800;...
3.3418 33418 25706 24970 6.6836 66836;...
2.298 22980 22604 25700 4.596 45960;...
2.3526 23526 20464 14938.8 4.7052 47052;...
2.11 21100 16099.2 5992 4.22 42200;...
3.1084 31084 15253.4 9787 6.2168 62168;...
];
% get the minimum value of A in each column:
min_A = min(A,[],1)
% create a graph of those values:
plot(min_A)
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!