V_n=R*T/P

4 次查看(过去 30 天)
Carmen Jimenez
Carmen Jimenez 2018-6-5
Why does this error message keep coming up when I enter this equation in the command window? >> V_n=R*T/P; %find values of V_n R=0.08602; P=1.01; T=285;2;325; Undefined function or variable 'R'.

采纳的回答

Kodavati Mahendra
Yo something is wrong with this line.
T=285;2;325; or T=285:2:325;
The following works for me, Code 1:
R=0.08602;
P=1.01;
T=285;2;325
V_n=R*T/P
answer V_n = 24.2730;
Code2:
R=0.08602;
P=1.01;
T=285:2:325
V_n=R*T./P
answer: V_n is an array of length 21.
Code3:
R=0.08602;
P=1.01;
T=[285;2;325];
V_n=R*T./P
answer: V_n =
24.2730
0.1703
27.6797
What do you want to do exactly?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by