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
0 件のコメント
採用された回答
Veera Kanmani
2018 年 3 月 29 日
First you need to
syms n
not sym n
1 件のコメント
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 Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!