Add multiple elements to array
Ältere Kommentare anzeigen
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 Kommentare
Torsten
am 30 Mai 2021
You mean x = [x,[100,3]];
?
Sferle Alin-Tudor
am 30 Mai 2021
Bearbeitet: Sferle Alin-Tudor
am 30 Mai 2021
Torsten
am 30 Mai 2021
x = [x,3*ones(1,100)];
Sferle Alin-Tudor
am 21 Sep. 2021
David Horton
am 23 Dez. 2021
Thanks!!!!!!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!