Add multiple elements to array
Afficher commentaires plus anciens
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 commentaires
Torsten
le 30 Mai 2021
You mean x = [x,[100,3]];
?
Sferle Alin-Tudor
le 30 Mai 2021
Modifié(e) : Sferle Alin-Tudor
le 30 Mai 2021
Torsten
le 30 Mai 2021
x = [x,3*ones(1,100)];
Sferle Alin-Tudor
le 21 Sep 2021
David Horton
le 23 Déc 2021
Thanks!!!!!!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!