error message: Undefined function 'sum' for input arguments of type 'struct'.

hi, how can i fix this error please Undefined function 'sum' for input arguments of type 'struct'.
Error in Pop_Init (line 18) SQC1=sum(MatBin1,1);

1 commentaire

Stephen23
Stephen23 le 24 Mai 2016
Modifié(e) : Stephen23 le 24 Mai 2016
Solution: don't provide a structure as the input to sum. Pass it a numeric array instead.

Connectez-vous pour commenter.

Réponses (0)

Catégories

Modifié(e) :

le 24 Mai 2016

Community Treasure Hunt

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

Start Hunting!

Translated by