Create a row matrix with different step size

I am looking for something like [1 2 3 4 100 150 200] 1:1:4 (step size 1) and the rest 100:50:200 (step size 50)

 採用された回答

Brendan Hamm
Brendan Hamm 2015 年 5 月 4 日

2 投票

Just utilize the concatenation operator [ ]
x = [1:4 100:50:200];

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2015 年 5 月 4 日

コメント済み:

2015 年 5 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by