Hello,
I wish to save contourf sequentially in for loop according to input filename, but it throws error : "Simulink object array must be avector"
My code:
fil=dir('*.h5'); for K=1:numel(fil)g=fil(K).name; s1=num2str(g(7:11)); %s1 is my file name which changes in each loop
(functions)im=contourf(x,y,z)saveas(im,strcat(s1,'.fig'));saveas(im,strcat(s1,'.png'));end
I guess I am at lack of understanding the issue…any help shall be welcome !
Best Answer