How to delete last number from a array?

719 ビュー (過去 30 日間)
Arnab Pal
Arnab Pal 2017 年 11 月 12 日
コメント済み: Walter Roberson 2019 年 6 月 7 日
I need, a=[8 9 5 8 7] to a=[8 9 5 8]. Every time I have to delete only last element. In my case, it will be complicated to delete like 5th element.
  2 件のコメント
Jordan Garcia
Jordan Garcia 2019 年 6 月 6 日
How do you make this possible with any size of row vector eliminating the final element for any size not just for a specific vector?
Walter Roberson
Walter Roberson 2019 年 6 月 7 日
Birdman's answer already does that. end always refers to the last element no matter how large that is.

サインインしてコメントする。

採用された回答

Birdman
Birdman 2017 年 11 月 12 日
  1 件のコメント
Arnab Pal
Arnab Pal 2017 年 11 月 12 日
Thank u...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by