Reformatting one column array into multiple columns
13 views (last 30 days)
Show older comments
Hi there, I have data in a single column that I want to break into an array with 4 columns so that I can average those 4 values in each row. So lets say I have the array: [[1],[2],[3],[4],[5],[6],[7],[8]]. I want to reformat it to be [[1,2,3,4],[5,6,7,8]]. I think I can use a for loop for this, but I am unfamiliar with the formatting of the range that I need to use. Can anyone help?
0 Comments
See Also
Categories
Find more on Logical 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!