*hi how I can write textfiles to directory using for loop for example the files with name 01.txt..............09.txt, 10.txt
thanks*

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 20 日

1 投票

for k=1:10
filename=sprintf('%d.txt',k)
%do
end

1 件のコメント

nada ali
nada ali 2014 年 4 月 21 日
Thank u so much

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeFiles and Folders についてさらに検索

タグ

質問済み:

2014 年 4 月 20 日

コメント済み:

2014 年 4 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by