Add multiple elements to array
显示 更早的评论
Hi,
Is there possible to add more than one element to an array at the same time?Like in this array:
x=[];
x=[x,3];%and I want to add a number of 100 3 in x
5 个评论
Torsten
2021-5-30
You mean x = [x,[100,3]];
?
Sferle Alin-Tudor
2021-5-30
编辑:Sferle Alin-Tudor
2021-5-30
Torsten
2021-5-30
x = [x,3*ones(1,100)];
Sferle Alin-Tudor
2021-9-21
David Horton
2021-12-23
Thanks!!!!!!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!