Info

This question is closed. Reopen it to edit or answer.

I have a large vector, how do i extract every 15th element?

1 view (last 30 days)
Hi,
I am relatively new to Matlab and would appreciate your help in extracting every 15th element of a large vector to create a smaller one.
Thanks!
Meli

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 17 Jun 2013
out=A(15:15:end)

Tags

Community Treasure Hunt

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

Start Hunting!