Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Laura Barroso
Laura Barroso le 28 Mar 2018
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 commentaires
Laura Barroso
Laura Barroso le 29 Mar 2018
Modifié(e) : Laura Barroso le 29 Mar 2018
I have to apply this sum to a M/M/1 queuing server simulation. It is not scalar, it's a matrix. I have another function that runs this into MM1, so the size of yij depends on the number of replicas of M/M/1 queuing server simulation.
Walter Roberson
Walter Roberson le 29 Mar 2018
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?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Mar 2018
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.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by