How can I write an output file .dat?

65 次查看(过去 30 天)
How can I write an output file(.dat) which containing a,t,y,z?

回答(1 个)

Tony Mohan Varghese
you can use the save function in MATLAB.
for example:
x = randn(100,1);
save test.dat x -ascii
% or
save('c:\folderyouwant\test.dat','x','-ascii');

类别

Help CenterFile Exchange 中查找有关 MATLAB 시작하기 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!