get values from each column and create graphical

1 view (last 30 days)
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.

Accepted Answer

Voss
Voss on 31 May 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)
min_A = 1×6
1.0e+04 * 0.0001 1.4098 1.2867 0.5992 0.0003 2.8196
% create a graph of those values:
plot(min_A)

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!