フィルターのクリア

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

2 ビュー (過去 30 日間)
Laura Barroso
Laura Barroso 2018 年 3 月 28 日
編集済み: Jan 2018 年 5 月 25 日
function [ yij ] = SPCmethod(yij,w)
sym n;
rep = 100;
for i = 1:w
yij(i) = mean (symsum(yij,i,1,rep))/rep
end
  1 件のコメント
Jan
Jan 2018 年 5 月 25 日
[MOCED from flags] Yuichi Tadokoro wrote
Flagged as Unclear
@Yuichi Tadokoro: Please use flags only to inform admins and editors about content, which conflicts with the terms of use, e.g. spam or rudeness. Thanks.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2018 年 5 月 25 日
編集済み: Jan 2018 年 5 月 25 日
The error message is clear: yij is a variable of type double, but symsum needs a symbolical expressions. Please post, what you use as input to this function.
Omit the useless sym n;, because n is not used anywhere.

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by