Expanding the existing Matrix
2 views (last 30 days)
Show older comments
Hello,
I have matrix 365 x 1, how can I expand the matrix into 8760 x 1 -> (365 times 24), replacing all the newly added numbers with every 24th number.
eg: matrix [2,4,5,2,3 .... ] -> [2,2,2,2,2,...,2,2,4,4,4,...,4,4,4,...and so on).
I would be really grateful for help
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays 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!