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

10 vues (au cours des 30 derniers jours)
Kyle Douin
Kyle Douin le 26 Avr 2022
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.

Réponses (1)

Walter Roberson
Walter Roberson le 26 Avr 2022
for hour = 0:23
for minute = 0:59
data(hour+1, minute+1) = appropriate value
end
end

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by