sprintf changes in each iteration
4 views (last 30 days)
Show older comments
Md on 27 Mar 2014
Edited: Walter Roberson on 29 Apr 2022
Hey guys, I want to change the sprintf in each iteration using a for loop. I want to read 1403 for a mat file and also I want to change the value 1 in each iteration. So, the value of 1 will increase in each iteration. And also in each iteration 1403 value will change and it will come from a mat file.
sprintf( 'A_1_20%4d',(1403-iFile) ) );
Thanks in advance.
Mischa Kim on 27 Mar 2014
Edited: Mischa Kim on 27 Mar 2014
Md, do you mean something like
To load a .mat file into the workspace simply use the load command, e.g.
More Answers (0)
Find more on Live Scripts and Functions 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!