How to split a vector in many sub-vectors with different sizes ?
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a vector and I want to split it in many subvectors with different sizes.
Example:
A = [1 2 3 4 5 6 7 8 9 10]
sub_1 = [1 2 3]
sub_2 = [4]
sub_3 = [5 6]
sub_4 = [7 8 9 10]
Could you help me with that ?
Thanks in advance,
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Math 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!