Undefined function 'symsum' for input arguments of type 'double'
1 次查看(过去 30 天)
显示 更早的评论
Can someone explain me how can I correct this error "Undefined function ' symsum' for input arguments of type 'double'"
function [ yij ] = SPCmethod(yij,w)
sym n;
rep = 100;
for i = 1:w
yij(i) = mean (symsum(yij,i,1,rep))/rep
end
3 个评论
Walter Roberson
2018-3-29
What is the data class of yij? You mention it is a matrix, but is it a matrix of double or a matrix of symbolic constants or a matrix of formulae?
采纳的回答
Walter Roberson
2018-3-29
For numeric array yji,
y_bar_i = mean(yji);
There should not be any loop: your other function that runs this is doing the looping.
There would only be a loop at the level that is generating multiple yji matrices.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numbers and Precision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!