嘿,我有个函数被定义为,
drift = @(x1,x2,u)[x2,(a*sin(x1) - b*x2 + u)]*.05;然后,在三重for循环(迭代)中尝试调用它。
)
next = [n1(x1), n2(x2)] + drift([n1(x1), n2(x2), nu(k)]);使用myMDP>@(x1,x2,u)x2,(a*sin(x1)-b*x2+u)*.05 (第148行)输入参数不够。
那个错误。为什么?
发布于 2014-02-08 22:13:24
f([1,2,3]) %function call with a single parameter, which is a 3 element vector
f(1,2,3) %function call with three parameters
f([1,2,3],[1,2,3],[1,2,3]) %function call with three parameters, each a 3 element vector.https://stackoverflow.com/questions/21652374
复制相似问题