Matrix one column separation into several columns with same amount of data

Hi, I would like to separate a matrix column into several matrix columns that will have same amount of data points. For example,
I have 'column A' which is 500 x 1. And I would like to separate it into five columns which are 100 x 5 and they would be 'Column A' ~ 'Column E'(five). First data point of 'Column B' would be 101th of 'Column A' First data point of 'Column C' would be 201th of 'Column A' etc.
Please let me have an idea about it. I am a beginner of Matlab. Thank you so much.

Risposte (1)

Use the reshape (link) function.
YourReshapedMatrix = reshape(YourMatrix, 100, []);

Richiesto:

il 14 Ago 2017

Modificato:

il 14 Ago 2017

Community Treasure Hunt

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

Start Hunting!

Translated by