Splitting matrix into arrays
16 次查看(过去 30 天)
显示 更早的评论
Hello,
how can I split a 2x1000 matrix into a 1x1000?
0 个评论
采纳的回答
Robin Kirsch
2020-5-9
I assume that you want to split a 2x1000 matrix into 2 1x1000 vectors.
A simple solution to do this is to extract each row, if A is your 2x1000 then you get the 1x1000 with
B = A(1,:) and C = A(2,:).
You can for-loop over this for x dimensional matrices
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!