How can I double a vector and to the second part of it add a number?
6 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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]
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!