How do I cut a vector from the end of a vector of a certain length and keep it in an independent vector
22 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Chunru
2021 年 7 月 31 日
A=[1 2 3 4 5 6 7 8 9]
cutpoint = 7;
B=A(1:cutpoint)
C=A(cutpoint+1:end)
7 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!