how can i access the 3rd, 4th and 6th coloumn simultaneously in a vector of 3 rows 6 columns.

조회 수: 3 (최근 30일)
Suppose I have z= [2 1 3 4 6 8 ; 0 5 6 8 3 5 ; 7 4 8 3 2 9]. I want to access the 3rd, 4th and 6th column simultaneously please tell me the way. whether to make a new matrix or can directly access. Regards

채택된 답변

Image Analyst
Image Analyst 2014년 6월 13일
z346 = z(:,[3,4,6])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by