MATLAB: Result as a vector

vectors

Hi. I'm working on Combined Cycle as project. My problem is; I need to get v as a vector to plot but it is showing only one value as a result. Can you help me? Here are my codes :
Px1 = linspace(P5,P6,100);
Tx1 = linspace(T5,T6,100);
vx1 = (0.287*Tx1)/Px1;
plot(vx1,Px1);

Best Answer

Use element-wise divide operator with the "dot", ./
vx1 = (0.287*Tx1)./Px1;