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!