Deleting rows with specific values within a matrix
1 view (last 30 days)
Show older comments
Here is the given question:
Create a matrix, A, of dimension of random integers in the range . Now create a new matrix from A by removing any rows that contains either -10, 0, 10.
I have create the random matrix
A = randi([-10, 10], [7,12])
Despite looking online, I am yet to find anything similar.
Thanks for the help.
4 Comments
Matt J
on 6 May 2021
A record of the original question:
Here is the given question:
Create a matrix, A, of dimension of random integers in the range . Now create a new matrix from A by removing any rows that contains either -10, 0, 10.
I have create the random matrix
A = randi([-10, 10], [7,12])
Despite looking online, I am yet to find anything similar.
Thanks for the help.
See Also
Categories
Find more on Matrix Indexing 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!