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

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

 Akzeptierte Antwort

Veera Kanmani
Veera Kanmani am 29 Mär. 2018

0 Stimmen

First you need to
syms n
not sym n

1 Kommentar

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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by