復制到M文件,保存運行即可functionmain()t1=5;%defineyourownvalueTs=8;a0=1;count=1;fort=1:0.01:10f(count)=myfunction(t,t1,Ts,a0);count=count+1;enddisp('TheFvalueis:');disp(f);endfunctionf=myfunction(t,t1,Ts,a0)if(t<=t1)f=a0;elseif(t>t1)&&(t<=Ts)f=a0-0.1*(t-t1);elsef=0;endend
網站導航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學習zblogxuexi
- zblogPHP仿站zbpfang