Save signal as .dat file
Mostrar comentarios más antiguos
Hi , i have signal and i want to save it after modified(save as .dat ) how i can do that ?
1 comentario
Walter Roberson
el 28 de Dic. de 2011
There is no standard format for .dat files. .dat is used as an extension to indicate data files in some format that is private or unique to the program. Usually .dat is a binary format that would have to be written using the low level I/O routines.
We would have to know the exact internal format used by whatever program you would be reading this in with.
Respuestas (2)
Wayne King
el 28 de Dic. de 2011
x = randn(100,1);
save test.dat x -ascii
% or
save('c:\folderyouwant\test.dat','x','-ascii');
save supports other options as well.
2 comentarios
hajer
el 28 de Dic. de 2011
Walter Roberson
el 28 de Dic. de 2011
When you use the () form of save, the first parameter can be a variable name that contains the file name. For example
UserFile = 'c:\folderyouwant\test.dat';
save(UserFile, 'x', '-ascii')
Hafsa Asad
el 22 de Mzo. de 2015
1 voto
dlmwrite('myfile.dat', my_matrix_vals)
2 comentarios
andy wen
el 10 de Abr. de 2017
thank you ;)
Hafsa Asad
el 18 de Dic. de 2018
my pleasure : )
Categorías
Más información sobre Standard File Formats en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!