注册 登录
编程论坛 Matlab

求助 方程关于变量不可导如何求根问题

wingsofangel 发布于 2012-02-23 10:40, 754 次点击
求方程 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.
请问这怎么回事捏?
1 回复
#2
pengchengxin2012-02-24 09:05
你好 可以联系下我 qq2282642534
1