Matlab里求函数导数图象的问题
Matlab里求函数导数图象的问题
function I1=illbird(t,I1) %定义微分方程
k1=0.5;
I1=(k1*I1*(1-I1))';
day=0:50;
I10=0.002;
[t,I1]=ode45('illbird',day,I10);[t,I1]
plot(t,I1),grid,pause
dI1=diff(I1)
plot(t,dI1),grid
只出来一张图,为什么?
错误
Error using ==> plot
Vectors must be the same lengths.
function I1=illbird(t,I1) %定义微分方程
k1=0.5;
I1=(k1*I1*(1-I1))';
day=0:50;
I10=0.002;
[t,I1]=ode45('illbird',day,I10);[t,I1]
plot(t,I1),grid,pause
dI1=diff(I1)
plot(t,dI1),grid
只出来一张图,为什么?
错误
Error using ==> plot
Vectors must be the same lengths.
数学人气:544 ℃时间:2020-03-30 19:37:36
优质解答
参考答案\x09只要你敢死,我就敢埋
我来回答
类似推荐
猜你喜欢
- 11.氯化钠,2.氯化钡,3.无水硫酸铜,4.硫酸钠不使用其它试剂(可以用水)就可以把它们区别开,区别出的先后顺序
- 2幼儿小班科学教案有哪些
- 3Mary doesn't look()Jane.She is too thin.
- 4已知f(x)=2sin^2x-2cos^2x+4√3 sinxcosx-3
- 5Look at this.It's a pencil case.(翻译这句话)
- 6已知函数y=2sin(2x-π/3)+3
- 7小明看一本故事书,以看的页数比全书的三分之一多15页,比没看的少15页,这本书有多少页?
- 8难忘的一刻作文开头
- 9已知x的平方加3x加9的值等于11,则式子3x的平方加9x-2的值为
- 101谢谢你给我很多建议2失败是成功之母汉译英