Hello, I want to make 4 plots in one according to below:
R=8.3145;n=1;V=linspace(1,10,1000);T=[100,200,300,400];for i=1:4P(i)=n*R*T(i)./ V;hold on;plot(V,P(i))endhold off;
I am getting the error above. If I do :
P=n*R*T(1)./V;plot(V,P)
it's ok!I don't understand why the error.
Thank you!
Best Answer