MATLAB: Why just showing two lines

plot

R = 8.3145;
m = 4;
h = 6.626 * 10.^(-34);
T6 = 300;
P6 = -100:0.1:100;
U6 = 3/2 * N * R * T6;
H6 = 5/2 * N * R * T6;
F6 = - N .* R .* T6 .* (1 + log(R .* T6 ./ P6 .* (2 * pi .* m .* R .* 3 ./ P6 ./ (h ^ 2)).^ 1.5));
G6 = - N .* R .* T6 .* (log(R .* T6 ./ P6 .* (2 * pi .* m .* R .* 3 ./ P6 ./ (h ^ 2)).^ 1.5));
plot(P6,U6,'r',P6,H6,'b',P6,F6,'y',P6,G6,'k')
grid on
title (' r: U(P),H(P),F(P),G(P) combine')

Best Answer

The values for ‘U6’ and ‘H6’ are scalars. They are not functions of ‘P6’.
Also, you did not define ‘N’ in the code you posted.
Related Question