Add multiple elements to array
Show older comments
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 Comments
Torsten
on 30 May 2021
You mean x = [x,[100,3]];
?
Sferle Alin-Tudor
on 30 May 2021
Edited: Sferle Alin-Tudor
on 30 May 2021
Torsten
on 30 May 2021
x = [x,3*ones(1,100)];
Sferle Alin-Tudor
on 21 Sep 2021
David Horton
on 23 Dec 2021
Thanks!!!!!!
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!