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

23 vues (au cours des 30 derniers jours)
Sultan Mehmood
Sultan Mehmood le 21 Juin 2019
Commenté : Sultan Mehmood le 21 Juin 2019
A=(1,2 ,3,4,5,6,7,8,9,10)
remove first 3 values.

Réponse acceptée

Aravind Ravikumar
Aravind Ravikumar le 21 Juin 2019
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.

Plus de réponses (1)

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

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by