MATLAB Answers

0

Split a column data into multiple columns

Asked by Abdul Ghaffar on 4 Jun 2019
Latest activity Commented on by Abdul Ghaffar on 5 Jun 2019
I have 1000 observations in a column.
I want to convert first 5 element in 1st row
next 5 element in 2nd row and
next 5 in 3rd row and so on....
Please someone told how can I split data.

  0 Comments

Sign in to comment.

Tags

Products


Release

R2018b

1 Answer

Answer by Walter Roberson
on 4 Jun 2019

Rows_of_5 = reshape(YourVariable, 5, []).';

  1 Comment

Sign in to comment.