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
Tony Mohan Varghese 2018 年 3 月 21 日

0 投票

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 ExchangeMATLAB についてさらに検索

製品

質問済み:

2018 年 3 月 18 日

回答済み:

2018 年 3 月 21 日

Community Treasure Hunt

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

Start Hunting!