| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 754 人关注过本帖
标题:求助 方程关于变量不可导如何求根问题
只看楼主 加入收藏
wingsofangel
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-2-23
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
求助 方程关于变量不可导如何求根问题
求方程 I(x>=3)*5-5=0的根,其中I(t)=1,若t为真;I(t)=0,若t为假。
我的程序如下
function [tst0]=tst(t)
tst0=double(t>=3)*5-5;

命令:t=fsolve(@(t) tst(t),0,optimset('Display','iter'));

运行结果如下:
                                        Norm of      First-order   Trust-region
 Iteration  Func-count     f(x)          step         optimality    radius
     0          2              25                             0               1

No solution found.

fsolve stopped because the problem appears regular as measured by the gradient,
but the vector of function values is not near zero as measured by the
default value of the function tolerance.
请问这怎么回事捏?
搜索更多相关主题的帖子: function solution because appears problem 
2012-02-23 10:40
pengchengxin
Rank: 2
等 级:论坛游民
帖 子:3
专家分:40
注 册:2012-2-24
收藏
得分:20 
你好 可以联系下我 qq2282642534
2012-02-24 09:05
快速回复:求助 方程关于变量不可导如何求根问题
数据加载中...
 
   



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

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