Why it shows that index exceeds the number of array elements???
조회 수: 1 (최근 30일)
이전 댓글 표시
%Statistics
areas = [5176 5183 5165]
area_mean= mean(areas)
area_var= var(areas)
area_std= std(areas)
댓글 수: 0
답변 (1개)
Cris LaPierre
2021년 3월 4일
You must have a variable defined as either mean, var, or std. Clear your workspace and try again.
areas = [5176 5183 5165];
area_mean= mean(areas)
area_var= var(areas)
area_std= std(areas)
% Now to recreate the error by replacing the function 'mean' with a variable
mean = 5
area_mean= mean(areas)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!