Undefined function 'symsum' for input arguments of type 'double'

1 次查看(过去 30 天)
Can someone please explain me why I have this error? I was trying to do a sum of observations yij (observation i, replica j).
function [ yij ] = SPCmethod(yij,w)
sym n;
rep = 100;
for i = 1:w
yij(i) = mean (symsum(yij,i,1,rep))/rep
end

采纳的回答

Veera Kanmani
Veera Kanmani 2018-3-29
First you need to
syms n
not sym n
  1 个评论
Walter Roberson
Walter Roberson 2018-3-29
That is not the problem, because they do not use n, so having an extra command equivalent to
sym('n');
will not cause any problems.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by