print values of array greater than 0
17 views (last 30 days)
Show older comments
Robert Hansen
on 26 Jul 2020
Commented: Robert Hansen
on 26 Jul 2020
Hello,
I am trying to sort/split an arrray into another array. For my application, I need to replace the array's 0s with either an empty space ' ' or simply continues to print the array out in table format and leave the 0s blank. I've been banging my head on the table for an hour now trying to find a function/print/slice/sort combination that will do this. Any help is greatly appreciated.
Thank You,
0 Comments
Accepted Answer
madhan ravi
on 26 Jul 2020
Just use > to find values greater than 0.
doc >
Hope you’re not bleeding :(
4 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!