how write files using for loop

1 次查看(过去 30 天)
nada ali
nada ali 2014-4-20
评论: nada ali 2014-4-21
*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
for k=1:10
filename=sprintf('%d.txt',k)
%do
end

类别

Help CenterFile Exchange 中查找有关 Adding custom doc 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by