Save one and after data in one programme
1 view (last 30 days)
Show older comments
Hi All I just need help that I am working on a programme in which i have a loop and loop is repeated 10 to 11 times i just want to save the results every time in a new file it means when the programme end i have 11 files Anybody please help how to store 11 different files in a single programme Thanks in advance
Answers (1)
OCDER
on 7 Aug 2018
Edited: OCDER
on 7 Aug 2018
Here's a simple case for writing 11 files. Without details in your question, you'll have to start from this template and modify it to fit your needs.
for j = 1:11
Data = rand(100, 10);
FileName = sprintf('myfile_%d.csv', j);
csvwrite(FileName, Data)
end
5 Comments
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!