How can I represent this function on simulink ?

I get the following error while trying to represent the function Cp(B,landa): * _Error using / Matrix dimensions must agree. Error in Untitled (line 3) Cp=0.5*(116/landa+0.4*B)*exp(-21/landa);
B=2;
landa=0:2:20;
Cp=0.5*(116/landa+0.4*B)*exp(-21/landa);
plot(lnda,Cp)

 采纳的回答

B=2;
landa=0:2:20;
Cp=0.5*(116./landa+0.4*B).*exp(-21./landa);
plot(landa,Cp)

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by