Bug with mean() on floating point vector elements
이전 댓글 표시
Can someone explain this bug?
a = rand(100,1);
mean(a(4), a(6))
Output:
Error using sum
Dimension argument must be a positive integer scalar within indexing range.
Error in mean (line 117)
y = sum(x, dim, flag)/size(x,dim);
댓글 수: 1
Stephen23
2017년 12월 13일
"Can someone explain this bug?"
What bug? The fact that you are using mean in a way that is not supported by MATLAB just means that you need to read the documentation.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!