very basic matlab question about .dat file
Show older comments
I'm doing an assignment for a programming class I'm in, and it is asking me to write a .dat file measuring two variables (i.e. wind speed & visibility) over a 24 hr period. I assumed it would require a matrix to do this, but I am having trouble creating the matrix to measure two variables. It's probably a very simple answer but I've been trying to figure it out for a while. Please let me know if you have any tips on this
Accepted Answer
More Answers (1)
Tim
on 29 Sep 2011
0 votes
Hi Arielle,
Are you reading from a file? If so you can use the import wizard found under the file menu. Or you can use dlmread
wind = dlmread('windData.dat')
type help dlmread for further examples. You might need to add more depending on how your data is delimited.
Tim
Categories
Find more on Spreadsheets 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!