Clear Filters
Clear Filters

How to save data in ascii format from a cell with a for loop?

3 views (last 30 days)
Hi everyone!! I want to save data in ascii format from a cell with a for loop. For example if I have 2 files with different data in this case File{1,1} and File{1,2}, when I try to save data of each one for loop only saves me the first as you can see in the picture. I have no idea how to put a loop with a save function. I hope you can help me.
for k=1:numfiles
Archivo{k} = File{1,k}
save('Archivo','-ascii','-double')
end
Thanks in advance!!!

Answers (0)

Community Treasure Hunt

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

Start Hunting!