Learned from Matlab, this worked:
figure;for k = 1:8h(k) = subplot(2,4,k);endfigure;for k = 1:8J(k) = subplot(2,4,k);end
But when call with after:
for k = 1:8subplot(h(k);plot(a(k))subplot(J(k);plot(b(k))end
It plots 4-a and 4-b on the second figure and left the first figure with 8 empty subplots. What's wrong?
Best Answer