matrix arithmetic numbers short way

1 回表示 (過去 30 日間)
Grkn12
Grkn12 2021 年 1 月 1 日
コメント済み: Grkn12 2021 年 1 月 1 日
Hi,
is there any short way to define a matrix that contains arithmetic number , for instance A = [ 1 2 3 4 5 6 ..... 30 ] can I write this matrix in a different and short form instead of writing all these numbers ?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2021 年 1 月 1 日
Yes, quite easily.
A = 1:30;
  1 件のコメント
Grkn12
Grkn12 2021 年 1 月 1 日
thanks..,

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

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by