I want to load files every time for a simulation purpose. I want to change 1 at the end of file name "Data_1500_1" using a loop or any logic that it can load all files by it self. Like I am doing here. Next time i want to load file named as "Data_1500_2" with 2 at the end and then 3,4,5,6… and so on.
if trueA = load('Data_1500_1.mat');B = load('Data_2000_1.mat');C = load('Data_3000_1.mat');D = load('Data_4000_1.mat');E = load('Data_5000_1.mat');F = load('Data_6000_1.mat');G = load('Data_7000_1.mat');H = load('Data_8000_1.mat');I = load('Data_9000_1.mat');J = load('Data_10000_1.mat');end
Need your guidance.
Best Answer