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;

类别

Help CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by