Hey, I am trying to use the for code to plot a graph and it keeps saying that my index exceeds the array bounds. Not sure what to do to correct the loop. Thank you in advance.
Tr=0.85:0.05:1; MV= 0.15:0.02:1.75 Pr=zeros(length(Tr),81); Tr=0.85:0.05:1; for i= 1:length(Tr) i MV= 0.15:0.02:1.75; [Pr(i,:)] = Isotherm(Tr(i)); hplot=semilogy(MV,Pr(i,:),'-')hold onset(hplot(i),'color', 'red', 'Marker','o')set(hplot(i),'color', 'cyan')set(hplot(i),'color', 'magenta')set(hplot(i),'color', 'blue')set(hplot,'linewidth', 1)end
Best Answer