When to use find, loops or if?
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (3)
Grzegorz Knor
il 28 Set 2011
0 voti
Start solve your task by reading this topic:
Then you will need the mean function and some matrix indexing:
Jenny
il 19 Ott 2011
0 voti
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!