get values from each column and create graphical

조회 수: 1 (최근 30일)
Berfin Çetinkaya
Berfin Çetinkaya 2022년 5월 31일
댓글: Voss 2022년 5월 31일
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.

채택된 답변

Voss
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)
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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by