matrix arithmetic numbers short way

3 visualizzazioni (ultimi 30 giorni)
Grkn12
Grkn12 il 1 Gen 2021
Commentato: Grkn12 il 1 Gen 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 ?

Risposte (1)

Ameer Hamza
Ameer Hamza il 1 Gen 2021
Yes, quite easily.
A = 1:30;

Categorie

Scopri di più su Operators and Elementary Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by