related to the fprintf
2 ビュー (過去 30 日間)
古いコメントを表示
SCRW;NAME;SCRW_1
SCRW;NAME;SCRW_2
SCRW;NAME;SCRW_3
SCRW;NAME;SCRW_4
i need a text file exactly this way so how can i write the code with. it should execute automatically with the number of shoes
0 件のコメント
回答 (1 件)
Walter Roberson
2022 年 7 月 5 日
number_of_shoes = 4;
for shoe_number = 1 : number_of_shoes
filename = sprintf('SCRW;NAME;SCRW_%d', shoe_number)
end
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!