> 其他 >
matlab用dsolve解常微分方程并画图,
例如y'=1-y^2,y(0)=0.
人气:206 ℃ 时间:2020-06-19 07:54:29
解答
>> y=dsolve('Dy=1-y^2','y(0)=0')
 
y =
 
tanh(t)
>> t=-2*pi:0.1*pi:2*pi;
>> y=tanh(t);
>> plot(t,y)
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版