This question is closed. Reopen it to edit or answer.
I'm trying to set certain rows in a 3 dimensional matrix 0
2 views (last 30 days)
Show older comments
Anush Lingamoorthy on 19 Sep 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
I have created a 3-Dimensional matrix (remove_bad_data) of size
I wish to remove certain rows on each sheet. Eg.
But I get the following error:
A null assignment can have only one non-colon index.
How do I fix this issue?
Edited: José-Luis on 19 Sep 2017
Since it is impossible setting them to empty without actually changing your array, you could use NaN instead.
data(10,:,2) = NaN;
For example. Or actually use 0 like the header of your question suggests instead of trying to set them to empty.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!