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!
