How can I write an output file .dat?
显示 更早的评论

How can I write an output file(.dat) which containing a,t,y,z?
回答(1 个)
Tony Mohan Varghese
2018-3-21
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');
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!