When to use find, loops or if?
Show older comments
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.
Accepted Answer
More Answers (3)
Grzegorz Knor
on 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
on 19 Oct 2011
0 votes
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!