Merge a selected rows to creat a single row
Show older comments
I [have] a long (2000x2) (array/matrix) " the data is double "
and i want to Merge each 8 rows to get a (667x6 array)
if the last row is less than 6 , then it's gonna fill the begging of it with zeros .
a small example :
x = 1 2
3 4
5 6
7 8
result = 1 2 3 4 5 6
0 0 0 0 7 8
thank you in advance
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!