Extract data from array at set intervals to new array

I'm extracting some intensity data from video frames and storing it in an array. Frame number along x and amplitude on y, usual stuff.
How would I create a new array which stores the y(row) value every 24 frames?
Thanks

 Akzeptierte Antwort

Kevin Phung
Kevin Phung am 25 Feb. 2019
you can use indexing.
y(1:23:end)

Weitere Antworten (0)

Produkte

Version

R2018a

Gefragt:

am 24 Feb. 2019

Kommentiert:

am 27 Feb. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by