Add multiple elements to array
Mostra commenti meno recenti
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 Commenti
Torsten
il 30 Mag 2021
You mean x = [x,[100,3]];
?
Sferle Alin-Tudor
il 30 Mag 2021
Modificato: Sferle Alin-Tudor
il 30 Mag 2021
Torsten
il 30 Mag 2021
x = [x,3*ones(1,100)];
Sferle Alin-Tudor
il 21 Set 2021
David Horton
il 23 Dic 2021
Thanks!!!!!!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!