Clear Filters
Clear Filters

how to delete a row from the matrix??

4 views (last 30 days)
Suppose if I have a matrix as:
san = [ 1 2 3; 4 5 6; 7 8 9; 10 11 12; 13 14 15]
if I want to delete second row and all of its column then ow can I do this??
nayana on 9 Jan 2013
delete(x,:)=[]; where x is the row u want 2 delete
Image Analyst
Image Analyst on 9 Jan 2013
Edited: Image Analyst on 9 Jan 2013
Two virtually identical questions in the same day ( - is this homework, the same homework as Wei's? If so, it should have been tagged as homework instead of "matlab code".

Sign in to comment.

Accepted Answer

Srinivas on 9 Jan 2013
san(2,:) = []

More Answers (0)


Find more on Startup and Shutdown in Help Center and File Exchange


No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!