Removing zeros from workspace
显示 更早的评论
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 个评论
Ameer Hamza
2020-3-9
Can you show us a sample of your dataset? How do you want to remove zeros, do you want to delete rows?
Alfie Skehel
2020-3-9
Alfie Skehel
2020-3-9
采纳的回答
更多回答(1 个)
darova
2020-3-9
Try
data(data==0) = [];
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
