Create a row matrix with different step size

8 ビュー (過去 30 日間)
Lily
Lily 2015 年 5 月 4 日
コメント済み: Lily 2015 年 5 月 4 日
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 日
Just utilize the concatenation operator [ ]
x = [1:4 100:50:200];
  1 件のコメント
Lily
Lily 2015 年 5 月 4 日
Thanks

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

その他の回答 (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