Why it shows that index exceeds the number of array elements???
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
%Statistics
areas = [5176 5183 5165]
area_mean= mean(areas)
area_var= var(areas)
area_std= std(areas)
0 Commenti
Risposte (1)
Cris LaPierre
il 4 Mar 2021
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 Commenti
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!