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

Stephen23
Stephen23 2016년 5월 24일
편집: Stephen23 2016년 5월 24일
Solution: don't provide a structure as the input to sum. Pass it a numeric array instead.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2016년 5월 24일

편집:

2016년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by