get values from each column and create graphical
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Voss
2022-5-31
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)
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!