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!