Concatenating element- what the different?
2 ビュー (過去 30 日間)
古いコメントを表示
What is the different between those code:
NewVector=[Vector1,element,vector2];
and
NewVector=[Vector1:element:vector2];
0 件のコメント
採用された回答
James Tursa
2015 年 7 月 19 日
編集済み: James Tursa
2015 年 7 月 19 日
E.g.,
[1,3,10] is a three element vector with the elements 1, 3, and 10.
[1:3:10] uses the colon operator and is a four element vector starting with 1 and counting by 3 until 10 is reached or exceeded, so it has the elements 1, 4, 7, 10.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!