필터 지우기
필터 지우기

Index of a Column Vector

조회 수: 26 (최근 30일)
Ahmet Cin
Ahmet Cin 2019년 12월 29일
댓글: Ahmet Cin 2019년 12월 30일
Hello,
I want to show the first, the second and the sixth element of a 7x1 vector. Which function i should use ?
Thanks for help!

답변 (1개)

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2019년 12월 29일
Just use brackets for the array index
A = 1:7;
A([1,2,6])
ans =
1 2 6
  댓글 수: 1
Ahmet Cin
Ahmet Cin 2019년 12월 30일
Thank you very much.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by