loop to work with the column
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hello! There is a loop, I need to know automatically how many values after the point
X=[1 2 3 4 5 6 90 70 60 50 6 5 4 3 2
1 2 3 4 5 6 60 70 60 50 6 5 4 3 2
1 2 3 4 5 6 60 60 70 50 6 5 4 3 2]';
for i=1:length(X(1,:))
[~,loc1]=max(X);
end
% and now I need to find out how many values from maxim to 6
% ans(1) = 4 % 70 60 50 6 % ans(2)=3 % 60 50 6 % ans(3)=2
how do i do this?
2 件のコメント
Stephen23
2020 年 1 月 27 日
"how many values after the point"
What exactly is "the point" ?
What is that loop supposed to do?
Lev Mihailov
2020 年 1 月 27 日
編集済み: Lev Mihailov
2020 年 1 月 27 日
回答 (1 件)
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!