Matrix reshaping and combination

1 Ansicht (letzte 30 Tage)
AA
AA am 19 Mai 2020
Beantwortet: Ameer Hamza am 19 Mai 2020
cd(1:24:end,4)
Suppose the above where cd is a matrix variable. I want the fourth column to be extracted in such a way that I get not the first of every 24 values but the last of every 24 values. How can I do this?

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 19 Mai 2020
cd(24:24:end,4)

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by