为啥这段matlab函数用java调用会出错?

function [ ] = pleaseagain(Request,N)
function y=f(x)
y=0.5*19.2*N+x-x;
end
function h=g(m)
h=quadl(@f,m,1)-Request;
end
fzero(@g,-1); %查找fun函数在x0附近的零点
end

错误提示:
Error using fzero (line 289)
FZERO cannot continue because user supplied function_handle ==> pleaseagain/g
failed with the error below.

Integers can only be combined with integers of the same class, or scalar doubles.

新手跪求指点!~(>_<)~

1个回答

在matlab里面运行没有问题的呜呜!

立即提问
相关内容推荐