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

조회 수: 1 (최근 30일)
Laura Barroso
Laura Barroso 2018년 3월 28일
댓글: Walter Roberson 2018년 3월 29일
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