Concatenating element- what the different?
1 次查看(过去 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!