How to specifiy the data format to export generated data from matlab?!
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
John
el 9 de Oct. de 2015
Comentada: Walter Roberson
el 12 de Oct. de 2015
Hi Guys,
I try to save data to a text format. The name of the data exported is:
name=[Model_File '__ Timeslot_STI: ' num2str(Timeslot)]
fid = fopen(name,'w'); % Create/open file discarding content
now i dont know how to specify the file type, when i creat this document. I would like to save it as txt.file... Does anyone know how to arrange this?
I am very glad for your help! Best regards, John
0 comentarios
Respuesta aceptada
Walter Roberson
el 9 de Oct. de 2015
name = sprintf('%s__ Timeslot_STI: %g.txt', Model_File, Timeslot);
fid = fopen(name, 'wt'); % Create/open file discarding content
5 comentarios
Walter Roberson
el 12 de Oct. de 2015
Colons (':') are not permitted in MS Windows file names as they are reserved for drive specifications.
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!