How can i choose certain rows from a matrix?

2 views (last 30 days)
i have a matrix (resulted from simulation) it contains 10000 row i want to make a new matrix from this matrix it contains only 1000 row (row number 10; row number 20; row number 30, ...., row number 10000). how can i choose these rows?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 1 Mar 2013
Edited: Azzi Abdelmalek on 1 Mar 2013
A=rand(10000,3)
out=A(10:10:10000,:)

More Answers (0)

Categories

Find more on MATLAB 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!