how to empty the cell of any array whose index is in another matrix
1 view (last 30 days)
Show older comments
Mausmi Verma
on 4 Oct 2021
Commented: Mausmi Verma
on 4 Oct 2021
I want to know how to empty the cell of any array, when the index of that particular cell is given in another matrix.
eg: I have an array as
A={[1 2], [10 11], [15 12], [16 17], [18 2]}
a matrix having index as
B=[2 3 5]
Now i want to empty the cells with index given in matrix B and want an output as:
A={[1 2],[ ], [ ], [16 17], [ ]}
I am a begineer in MATLAB, so pardon me if my question is not clear.
0 Comments
Accepted Answer
More Answers (1)
See Also
Categories
Find more on Matrices and Arrays 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!