How to use 2 forloop in matlab?
4 ビュー (過去 30 日間)
表示 古いコメント
Muhammad Andi Yusran
2020 年 3 月 17 日
コメント済み: Muhammad Andi Yusran
2020 年 3 月 17 日
I have a Mat-file. My Mat-file have 204 length. How can i just get from length 1 to 51 from my Mat-file? How can i use another forloop in my code to get i = 1 till i = 51? This is my code.
a = 0;
m = matfile('elm_output.mat');
output = m.output;
for i = 1:length(output)
if output(i) == 1
a = a+1;
end
end
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Find more on Linear Algebra 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!