问题描述
- 为啥这段matlab函数用java调用会出错?
- function [ ] = pleaseagain(RequestN)
function y=f(x)
y=0.5*19.2*N+x-x;
end
function h=g(m)
h=quadl(@fm1)-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.
新手跪求指点!~(>_<)~
解决方案
在matlab里面运行没有问题的呜呜!
时间: 2024-09-22 10:35:29