simulink based matlab coding

1 次查看(过去 30 天)
Bilal sadiq
Bilal sadiq 2018-6-30
function dFt=Tendon_SEE(ltdot,Ft) Ft=Ft Kte=302.2; Ktl=311.40; Ftc=200; Kt=150;%635.5; Kc=0; %Kt_Ft=zeros(size(Ft)); %for i=1:length(Ft) if ((Ft>=0) && (Ft<=Ftc)) Kt_Ft=(Kte*Ft)+Ktl elseif (Ft>Ftc) Kt_Ft=Kt else Kt_Ft=Kc end %end dFt=Kt_Ft*ltdot;
end
  2 个评论
Bilal sadiq
Bilal sadiq 2018-6-30
function dFt=Tendon_SEE(ltdot,Ft)
Ft=Ft
Kte=302.2;
Ktl=311.40;
Ftc=200;
Kt=150;%635.5;
Kc=0;
%Kt_Ft=zeros(size(Ft));
%for i=1:length(Ft)
if ((Ft>=0) && (Ft<=Ftc))
Kt_Ft=(Kte*Ft)+Ktl
elseif (Ft>Ftc)
Kt_Ft=Kt
else
Kt_Ft=Kc
end
%end
dFt=Kt_Ft*ltdot;
end end
Bilal sadiq
Bilal sadiq 2018-6-30
question is ...........it always executes the last else command Kt_Ft=Kc

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by