how to remove first n entries from iterete sequence or vector.?

조회 수: 107 (최근 30일)
A=(1,2 ,3,4,5,6,7,8,9,10)
remove first 3 values.

채택된 답변

Aravind Ravikumar
Aravind Ravikumar 2019년 6월 21일
Hey, you can do the following
A = [1,2,3,4,5,6,7,8,9,10]
A = [A(4:end)]
This is an example to remove first 3 values. Replace 4 by n+1 to remove first n elements from the array.

추가 답변 (1개)

Shwetank Shrey
Shwetank Shrey 2019년 6월 21일
A = [1,2 ,3,4,5,6,7,8,9,10];
A = A(4:end);

카테고리

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