| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2865 人关注过本帖
标题:求大神这个ode23中错误,如何解决
只看楼主 加入收藏
洛奇cue
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2017-6-14
收藏
 问题点数:0 回复次数:0 
求大神这个ode23中错误,如何解决
function xdot=difeq(t,x)
    xdot=zeros(2,1);
    xdot(1)=x(2);
    xdot(2)=(-3554.634*x(1).^2/(84.903+x.^2).^3/2+1129947.84*x/(x.^4-133.634)-156.8*x/(3*x.^2+34.68)*(x/(x+3.4)+3.4/x)-1210251.95/(x.^4-133.634))/(41.867*x/sqrt(84.903+x.^2)-41.867)
    end
tspan={0 20};
x0={0 1};              %Initial conditions
[t,x]=ode23('difeq',tspan,x0);
plot(t,x)
??? Undefined function or method 'minus' for input arguments of type 'cell'.

Error in ==> odearguments at 76
  htspan = abs(tspan(next) - t0);

Error in ==> ode23 at 172
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
 
搜索更多相关主题的帖子: function method 如何 
2017-06-14 08:22
快速回复:求大神这个ode23中错误,如何解决
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024730 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved