matrix arithmetic numbers short way

3 次查看(过去 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;

Community Treasure Hunt

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

Start Hunting!

Translated by