Load files named file1.dat, file2.dat, and so on in a loop. To test this, create just two files with these names in your Current Folder first
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:7| Question number:27.7
All Answers
total answers (1)
Ch7Ex27.m
for i = 1:2
eval(sprintf('load file%d.dat',i))
end
need an explanation for this answer? contact us directly to get an explanation for this answer