how to empty the cell of any array whose index is in another matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Mausmi Verma
il 4 Ott 2021
Commentato: Mausmi Verma
il 4 Ott 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 Commenti
Risposta accettata
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!