When to use find, loops or if?
Ältere Kommentare anzeigen
I have a text file containing three columns of data (time in fractions of a day, depth, temp). I need code that will read through the data file and get an average temperature value for every 5 meter depth block in every half hour time block. Then place that result into a matrix (depth:time). I don't know what to use/how to structure it.
Akzeptierte Antwort
Weitere Antworten (3)
Grzegorz Knor
am 28 Sep. 2011
0 Stimmen
Start solve your task by reading this topic:
Then you will need the mean function and some matrix indexing:
Jenny
am 19 Okt. 2011
0 Stimmen
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!