问题描述:
关于matlab的if语句
clear all;
den=1.23;
drageff=0.32;
frontarea=1.79;
mass=1100;
tmax=30;
deltat=0.01;
tstep=tmax/deltat+1;
rwheel=0.216;
torque=520; %The torque of 1500rpm,start point.
i=0;
ifirst=3.23;
isec=2.19;
ithird=1.71;
ifourth=1.39;
ififth=1.16;
itop=0.93;
ifinal=2.37;
v=zeros(tstep,1);
ti=zeros(tstep,1);
v(1)=0; ti(1)=0;
for t=2:tstep
if v(t-1)
clear all;
den=1.23;
drageff=0.32;
frontarea=1.79;
mass=1100;
tmax=30;
deltat=0.01;
tstep=tmax/deltat+1;
rwheel=0.216;
torque=520; %The torque of 1500rpm,start point.
i=0;
ifirst=3.23;
isec=2.19;
ithird=1.71;
ifourth=1.39;
ififth=1.16;
itop=0.93;
ifinal=2.37;
v=zeros(tstep,1);
ti=zeros(tstep,1);
v(1)=0; ti(1)=0;
for t=2:tstep
if v(t-1)
问题解答:
我来补答展开全文阅读