How can I write an output file .dat?

조회 수: 12 (최근 30일)
Seung-hyeon Choe
Seung-hyeon Choe 2018년 3월 18일
답변: Tony Mohan Varghese 2018년 3월 21일
How can I write an output file(.dat) which containing a,t,y,z?

답변 (1개)

Tony Mohan Varghese
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');

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!