Technical discussion about Matlab and issues related to Digital Signal Processing.
Post a new Thread
Writing mixed data to a .txt file - bartvandewal - Apr 9 19:43:32 2008
Hello,
I'm trying to write mixed data to a text file. Basically I have 3
vectors: one with a date (mm:dd:yyyy), one with a time (HH:MM:SS), and
one with data.
I'm having a hard time writing the data to a file. Does anyone know
how to do it?
Thanks,
Bart

(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )
Re: Writing mixed data to a .txt file - ashe...@yahoo.com - May 28 10:35:08 2008
Hi Batr,
Try this code
data=strcat(data1,data2,data3);
fid=fopen('Text.txt','w');
fprintf(fid,'%s\r\n',data)
fclose(fid);
regards
A.Mohamed Asheik

(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )