Need help creating a matrix from data in a for loop.

조회 수: 10 (최근 30일)
Kyle Douin
Kyle Douin 2022년 4월 26일
답변: Walter Roberson 2022년 4월 26일
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.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 4월 26일
for hour = 0:23
for minute = 0:59
data(hour+1, minute+1) = appropriate value
end
end

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by