필터 지우기
필터 지우기

how can i select part of column from matrix 2000*6

조회 수: 19 (최근 30일)
sabah
sabah 2015년 3월 17일
답변: Perry 2015년 3월 18일
x=m(:1)
its ok i'm already select column but i want part from column same 1400:1500 so i'm try already
example
x=m(:1,1400:1500)
but not work (error) so how can i take this part from column

채택된 답변

Perry
Perry 2015년 3월 18일
acessing a range in a matrix?
x=10x10
x1=x(:,[5:7 9:10]);
%it means your new matrix x1 consist of matrix all rows(:) and a column
range of 5-7 and 9-10

추가 답변 (1개)

dpb
dpb 2015년 3월 17일
편집: dpb 2015년 3월 17일
Addresses are row, column
x=m(1400:1500,1);
Simply put the numeric range in with the colon operator for rows or columns as desired.
Clearly you haven't worked thru the "Getting Started" section...type
doc
and then you're on your way w/ under the "MATLAB" button.

카테고리

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