フィルターのクリア

How can I double a vector and to the second part of it add a number?

6 ビュー (過去 30 日間)
Ruben Alfaro
Ruben Alfaro 2014 年 4 月 14 日
回答済み: Ruben Alfaro 2014 年 4 月 14 日
lets say i have a vector which is R=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10] size 10x1
I want to double that vector in size and repeat the numbers but add 360 to them.
So my new R would look like this:
R=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 360+1; 360+2; 360+3; 360+4; .....] size 20x1

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 14 日
編集済み: Azzi Abdelmalek 2014 年 4 月 14 日
R=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10]
R=[R;R+360]

その他の回答 (1 件)

Ruben Alfaro
Ruben Alfaro 2014 年 4 月 14 日
GREAT, thanks for your help it is very much appreciated.

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by