How to add values ​​to a vector

1 次查看(过去 30 天)
Hello! I have the values ​​obtained from the matrix E = 1x11004, with some operations in the loop I need to remove the last values, can I do 1x11004 + 2 = 1x11006. My last values ​​are 200 201 200 203, and I want to do 200 201 200 203 0 0

采纳的回答

KSSV
KSSV 2019-7-9
编辑:KSSV 2019-7-9
To add/ append
A = rand(1,10) ;
B = zeros(1,2) ;
iwant = [A B]
To Remove
A = rand(1,12)
A(11:12) = []

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by