When to use find, loops or if?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (3)
Grzegorz Knor
el 28 de Sept. de 2011
0 votos
Start solve your task by reading this topic:
Then you will need the mean function and some matrix indexing:
Jenny
el 19 de Oct. de 2011
0 votos
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!