Creating a matrix with numbers

2 visualizaciones (últimos 30 días)
Royvg94
Royvg94 el 24 de Sept. de 2015
Editada: Stephen23 el 24 de Sept. de 2015
I want to create a matrix with numbers, starting with 2000 until 666200 with steps of 1200. I want the matrix to be a n x 1 matrix, so only rows.
How can i do this?

Respuesta aceptada

Jae Song
Jae Song el 24 de Sept. de 2015
m = [2000:1200:666200]';
  4 comentarios
Royvg94
Royvg94 el 24 de Sept. de 2015
I just put it in wrong order, sorry didnt see, thanks!
Stephen23
Stephen23 el 24 de Sept. de 2015
Editada: Stephen23 el 24 de Sept. de 2015
@Royvg94: Try actually using Jae Song's answer, instead of making up something completely different. Then you will get a vector that fulfills your specifications.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by