|
|
|
|
|
It is an easy matter to save data as a mat(MATLAB binary) file or an ASCII file so long as you know the filename beforehand. For ex: to save data in the variable datvar to a file mydata.dat, all you have to do is say
However if you want to dynamically generate your filename, things get a little tricky since MATLAB's documentation is sparse about this. Here's how:
If you have multiple columns of data, just ensure that datvar is an array. Remember that the .mat file will retain the name of the variable datvar but the ASCII file will only contain data. |
#8 Anil Member Posted 1 year ago |
| RSS feed for this topic |
You must log in to post.
| Tags:
|
| © 2009 Anil Kandangath. All posts are owned by the whoever posted them. Share your knowledge. |
| The Math Root is proudly powered by bbPress.. This site is not affiliated with The MathWorks™ or Wolfram Research. // Theme by Mike Lothar |