When to use find, loops or if?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (3)
Grzegorz Knor
le 28 Sep 2011
0 votes
Start solve your task by reading this topic:
Then you will need the mean function and some matrix indexing:
Jenny
le 19 Oct 2011
0 votes
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!