pulling our elements from a matrix using for loop

조회 수: 1 (최근 30일)
PetronasAMG
PetronasAMG 2018년 2월 26일
답변: Star Strider 2018년 2월 26일
if matrix A = [1 3 4 2 17 6 4 5 2]
what is a matrix command that i can use it to pull first 6 elements?

채택된 답변

Star Strider
Star Strider 2018년 2월 26일
Try this:
B = A(1:6);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by