64 573
Assignments Done
99,2%
Successfully Done
In September 2018

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?
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions