필터 지우기
필터 지우기

deleting multiple rows in a matrix

조회 수: 68 (최근 30일)
shanmukh
shanmukh 2013년 2월 15일
댓글: Brian Russell 2021년 4월 24일
how can i completely remove the first 113475 rows in a (879999*1) matrix
  댓글 수: 1
varun sahni
varun sahni 2015년 11월 2일
m=rand(879999,1) m(1:113475,:)=[]

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

채택된 답변

José-Luis
José-Luis 2013년 2월 15일
your_mat = your_mat(113476:end,:);
Please read the Getting started part of the documentation.
  댓글 수: 1
shanmukh
shanmukh 2013년 2월 15일
thank you, i takes time but i get the required output

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

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 15일
  댓글 수: 1
Brian Russell
Brian Russell 2021년 4월 24일
This is not a correct answer. It should read: A(1:113475, :) = [ ]

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by