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?
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!