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

44 ビュー (過去 30 日間)
Sultan Mehmood
Sultan Mehmood 2019 年 6 月 21 日
コメント済み: Sultan Mehmood 2019 年 6 月 21 日
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 Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by