Subtract a row from a matrix
Show older comments
I have a matrix A = [ 1 2 3; 3 5 9; 1 8 0; 2 3 3 ] and the value of third row is stored in another matrix B = [1 8 0], how can i subtract B from A? i tried this A(B,:)=[] but not working.
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!