Removing zeros from workspace
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alfie Skehel
am 9 Mär. 2020
Kommentiert: Ameer Hamza
am 9 Mär. 2020
HI,
I have copied and pasted data from excel, each population has different number of readings and as a result the smaller populations are filled with zeros in the remaining cells.
thefore when i do a boxplot of the workspace it includes the zeros, I was wondering if there is a way of removing the zero values and still doing the boxplot
Thanks
3 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 9 Mär. 2020
If you are just making boxplot, setting them to nan will work.
A = ...; % suppose A is the name of your matrix
A(A==0) = nan;
boxplot(A);
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
