I wanted to know if there is a possibility do remove certain elements from a matrix at once, that match a specific value, without using the indexes?
You can do it with single values like this:
But what if there are multiple values I want to have removed?
and I want to remove every 1,3 and 5, without any loop or going with the indexes instead of the values.
How is this possible?
does not work.
Many thanks in advance.