Split a column data into multiple columns
显示 更早的评论
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.
回答(2 个)
malladi siva kumari
2019-10-21
2 个投票
a=1:1000
a=reshape(a,5,200)
1 个评论
Walter Roberson
2019-10-21
This puts the first 5 as the first column not the first row as required for this purpose
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!