Add multiple elements to array
Mostrar comentarios más antiguos
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 comentarios
Torsten
el 30 de Mayo de 2021
You mean x = [x,[100,3]];
?
Sferle Alin-Tudor
el 30 de Mayo de 2021
Editada: Sferle Alin-Tudor
el 30 de Mayo de 2021
Torsten
el 30 de Mayo de 2021
x = [x,3*ones(1,100)];
Sferle Alin-Tudor
el 21 de Sept. de 2021
David Horton
el 23 de Dic. de 2021
Thanks!!!!!!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!