matrix arithmetic numbers short way

2 visualizaciones (últimos 30 días)
Grkn12
Grkn12 el 1 de En. de 2021
Comentada: Grkn12 el 1 de En. de 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 ?

Respuestas (1)

Ameer Hamza
Ameer Hamza el 1 de En. de 2021
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