Undefined function 'symsum' for input arguments of type 'double'
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Laura Barroso
le 28 Mar 2018
Commenté : Walter Roberson
le 29 Mar 2018
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
0 commentaires
Réponse acceptée
Veera Kanmani
le 29 Mar 2018
First you need to
syms n
not sym n
1 commentaire
Walter Roberson
le 29 Mar 2018
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!