How to extract elements from an array in three different array
显示 更早的评论
suppose i have an array which stores 19 elements. How to extract first seven elements in one, then next five in another and remaining in third.
采纳的回答
更多回答(1 个)
the cyclist
2015-12-8
One way:
A = rand(1,19);
B1 = A(1:7);
B2 = A(8:12);
B3 = A(13:end);
类别
在 帮助中心 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!