extraction of some elements in a column vector

조회 수: 1 (최근 30일)
Dawud Adam Rabiu
Dawud Adam Rabiu 2021년 11월 10일
댓글: Cris LaPierre 2021년 11월 11일
x = [1:10]'
how do i extract the 1st, 3rd and 6xth element in the column vector.
  댓글 수: 2
dpb
dpb 2021년 11월 10일
y=x([1 3 6]);
Read Getting Started section on addressing in the documentation...
Cris LaPierre
Cris LaPierre 2021년 11월 11일
Or go through Ch 5 of MATLAB Onramp.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by