fprintf to create a file / precisions
1 回表示 (過去 30 日間)
古いコメントを表示
Hey Guys, this code is supposed to write Data into Test.dat-file.However, it doesn't work, cause signal is an Cell-Array containing strings.So can u pls help me and correct the code.
fprintf(fid,'%i\t%i\t%i\t%f\t%i\t%f\t%s\n',index,addr,amptotal0,amptotal,amp2,theta,signal)
And if u have some minuts.....the precisions... %f means float / %i menas integer but what does the t and the n mean ?
0 件のコメント
採用された回答
dpb
2014 年 7 月 25 日
A)
fmt='%i\t%i\t%i\t%f\t%i\t%f\t%s\n';
fprintf(fid,fmt,index,addr,amptotal0,amptotal,amp2,theta,char(signal))
B)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で C Matrix API についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!