Need help creating a matrix from data in a for loop.
10 ビュー (過去 30 日間)
古いコメントを表示
I have 2 imbeded for statements with the first one being 24 hours and the next being 60 iterations perminute. I now need to make a 24x60 matrix to find max, min, etc, per hour, any feedback would be greatly appreciated.
0 件のコメント
回答 (1 件)
Walter Roberson
2022 年 4 月 26 日
for hour = 0:23
for minute = 0:59
data(hour+1, minute+1) = appropriate value
end
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!