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?

 Akzeptierte Antwort

Jae Song
Jae Song am 24 Sep. 2015

1 Stimme

m = [2000:1200:666200]';

4 Kommentare

Royvg94
Royvg94 am 24 Sep. 2015
sample2time = [0:655200:1200]';
Putting this in as command but the only thing i get is a matrix with a 0 in it.
How about this:
sample2time = [0:1200:655200]';
Royvg94
Royvg94 am 24 Sep. 2015
I just put it in wrong order, sorry didnt see, thanks!
Stephen23
Stephen23 am 24 Sep. 2015
Bearbeitet: Stephen23 am 24 Sep. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Gefragt:

am 24 Sep. 2015

Bearbeitet:

am 24 Sep. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by