Info

この質問は閉じられています。 編集または回答するには再度開いてください。

i want to write in a file of matrix data of each element of row is seperated by commas and next row is in next line and also last element witout comma

1 回表示 (過去 30 日間)
lafnath p
lafnath p 2016 年 10 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
for x = 1:12
for z = 1:128
for y = 1:256
fprintf(fileID,'%f',data(x,y,z));
fprintf(fileID,',');
end
end
fprintf(fileID,'\n');
end
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 10 月 19 日
編集済み: Walter Roberson 2016 年 10 月 19 日
Have you ever considered the benefits of responding to people's questions about what you are trying to do, instead of creating a new Question? You now have two active Questions on exactly the same topic, and you are getting confused with someone else who seems to be asking the same thing.
KSSV
KSSV 2016 年 10 月 19 日
Exactly....Walter Roberson how we can void such questions?

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by