フィルターのクリア

Creating a matrix with numbers

2 ビュー (過去 30 日間)
Royvg94
Royvg94 2015 年 9 月 24 日
編集済み: Stephen23 2015 年 9 月 24 日
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?

採用された回答

Jae Song
Jae Song 2015 年 9 月 24 日
m = [2000:1200:666200]';
  4 件のコメント
Royvg94
Royvg94 2015 年 9 月 24 日
I just put it in wrong order, sorry didnt see, thanks!
Stephen23
Stephen23 2015 年 9 月 24 日
編集済み: Stephen23 2015 年 9 月 24 日
@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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by