write a script to write another new .dat
古いコメントを表示
I have to write a script which can write the data to a new .dat file. I already have a vector = [2000 3000 4000 7000 11000; 300 293 275 246 200], and I save as a.dat
Here we I got
load a.dat
time = a(1,:);
temp = a(2,:);
plot (time,temp,'k--')
now, I have to write an another .dat maintain different number of vector, and I have to write it on the script that i have(which is above script) and name it by b.dat.
4 件のコメント
Michael Haderlein
2014 年 10 月 26 日
What do you want to save in the second file?
save('b.mat', 'variablename');
will do the job.
david Chan
2014 年 10 月 26 日
dpb
2014 年 10 月 26 日
Simply add to the existing script (or write a separate function and call it from the first script).
david Chan
2014 年 10 月 26 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!