필터 지우기
필터 지우기

How to discard entries from a matrix

조회 수: 1 (최근 30일)
Iftekharuddin Syed
Iftekharuddin Syed 2020년 11월 12일
댓글: Setsuna Yuuki. 2020년 11월 12일
There is a matrix A (size:12x1000)
I want to extract entires after the 100th value, that means all the values before 100(i.e.1 to 99) are discarded. And the resulting matrix contains only values from 100th column to 1000th column.
Can anyone help me with the code.
  댓글 수: 1
Setsuna Yuuki.
Setsuna Yuuki. 2020년 11월 12일
A = ones(12,1000); % 12x1000 matrix
B = A(:,100:1000); % A(1-----12,100 -------> 1000)

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

채택된 답변

Steven Lord
Steven Lord 2020년 11월 12일

추가 답변 (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