matrix arithmetic numbers short way

1 vue (au cours des 30 derniers jours)
Grkn12
Grkn12 le 1 Jan 2021
Commenté : Grkn12 le 1 Jan 2021
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 ?

Réponses (1)

Ameer Hamza
Ameer Hamza le 1 Jan 2021
Yes, quite easily.
A = 1:30;

Catégories

En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by