no problem

62 views
Skip to first unread message

jpg9999

unread,
Mar 15, 2012, 10:37:25 AM3/15/12
to freemat
Dear Group,

My email of yesterday re: difficulty using Freemat 4.0 and 4.1 to open
a Kubios .mat output data file was due to my inexperience with
Freemat and MatLab ways of processing. I figured it out this morning,
quite simply that the i/o function Load does the trick whereas I had
been using the 'Open' item form the menu bar. Lesson learned, but I
am glad to have acquired this group as a resource for the future,
which I am sure I will inevitably have need to consult.

Yours truly,

jpg9999

EI

unread,
Mar 16, 2012, 12:40:53 PM3/16/12
to fre...@googlegroups.com
Glad it worked for you!
Good luck,
Eugene


--
You received this message because you are subscribed to the Google Groups "freemat" group.
To post to this group, send email to fre...@googlegroups.com.
To unsubscribe from this group, send email to freemat+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/freemat?hl=en.


jpg9999

unread,
Mar 20, 2012, 8:02:20 PM3/20/12
to freemat
ok, now I have gotten it loaded and I see a single struct variable
called 'res' which I assume is my heart beat data - 250,000+ values.
I need to write it out in ascii as a single column for inputting into
the circadian rhythm analyzer. I have tried all the i/o functions
that would seemingly be the way to do this (e.g. rawwrite, save), but
I can't get the output. What am I doing wrong?

Any thoughts seriously appreciated!
> >http://groups.google.com/group/freemat?hl=en.- Hide quoted text -
>
> - Show quoted text -

Timothy Cyders

unread,
Mar 24, 2012, 11:12:04 AM3/24/12
to fre...@googlegroups.com
Assuming you move the data to a simple column vector u, here's what I would do:

fid = fopen('output.txt','w+');

for i = 1:length(u)
fprintf(fid, '%f\n',u(i));
end

fclose(fid)


Let me know if that doesn't work.

TJ

jay paul ginsberg

unread,
Mar 26, 2012, 9:36:05 AM3/26/12
to fre...@googlegroups.com
Thank you for the idea. However, I was already able to get it to work
just fine using csvwrite, which produced an excel spreadsheet with all
values in the A column (and lots of rows).
Reply all
Reply to author
Forward
0 new messages