Answer to Question #5767 in MatLAB | Mathematica | MathCAD | Maple for Anu

Question #5767
I have a mat file (matrix)with 36000X7 dim in Matlab and I want to delete every 2nd row from the matrix that would result in 18000X7 dim matrix. How to do that using Matlab?
1
Expert's answer
2011-12-22T12:20:23-0500
Let A be the matrix with 36000X7 dim.
Then the command


A(1:2:end,:)

shows all rows starting from 1 to the last row with
step 2, that is rows
1,3,5,7...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS