Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

convert mat files (struct) to ascii text files / save data as ascii text

392 views
Skip to first unread message

Stijn Oonk

unread,
Dec 23, 2009, 1:43:06 PM12/23/09
to
I'm using a script that saves data (x,y) as .mat files in struct format. However I need it to save the data as ascii text files. How can this be done? I've tried save -ascii etc etc but matlab returns that the data format is not suitable to save as ascii.

So is there a (simple) way to either save my data as ascii text or convert a generated .mat file to ascii text file (CSV or else)?

Thanks!

Nathan

unread,
Dec 23, 2009, 1:49:07 PM12/23/09
to

You could always try writing the data using other functions

See: dlmwrite, csvwrite, xlswrite...

Here are the built in ways to load/save data in matlab:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fileformats.html

-Nathan

0 new messages