Removing zeros from workspace
Show older comments
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 Comments
Ameer Hamza
on 9 Mar 2020
Can you show us a sample of your dataset? How do you want to remove zeros, do you want to delete rows?
Alfie Skehel
on 9 Mar 2020
Alfie Skehel
on 9 Mar 2020
Accepted Answer
More Answers (1)
darova
on 9 Mar 2020
Try
data(data==0) = [];
Categories
Find more on Spreadsheets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!