how to remove zeroes and reverse that in a matrix
1 view (last 30 days)
Show older comments
I have considered a matrix with zeros
x=[1 2 3 0
0 0 0 1]
i removed the zeros and the result is
y=[1 2 3 1]
Is it possible to reverse ie obtain x from y..
Please help
0 Comments
Accepted Answer
Walter Roberson
on 10 Apr 2013
No, not unless you have additional information about where the zeros go, and about the shape of the target matrix.
More Answers (0)
See Also
Categories
Find more on Logical 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!