How can I represent this function on simulink ?

1 Ansicht (letzte 30 Tage)
Hicham Lhachimi
Hicham Lhachimi am 13 Mai 2016
Kommentiert: Hicham Lhachimi am 13 Mai 2016
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)

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 13 Mai 2016
B=2;
landa=0:2:20;
Cp=0.5*(116./landa+0.4*B).*exp(-21./landa);
plot(landa,Cp)

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by