I have three matrixes with different names as NPV_1, NPV2 and NPV_3. I have tried the below but It did not work. Can you please help
for i = 1:3 fm =forfor sprintf('NPV_%d',i); NPV_Mat = fm; end
for loop
for i = 1:3 fm =forfor sprintf('NPV_%d',i); NPV_Mat = fm; end
Best Answer