Effacer les filtres
Effacer les filtres

How to append a new element to a cell object A?

1 169 vues (au cours des 30 derniers jours)
fan feng
fan feng le 8 Juin 2015
Réponse apportée : geofo le 3 Déc 2021
>>A={'a';'b'};
I want to append a new element,say 'c', to A, how could I do?
I would appreciate if you could help me.

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Juin 2015
  6 commentaires
Christopher Davis
Christopher Davis le 10 Jan 2021
That's really helpful, not sure if it's proper terminology but I've heard this refered to as prepend
Pedro Miranda Pinheiro
Pedro Miranda Pinheiro le 14 Sep 2021
Thank you, @Walter Roberson! @Christopher Davis, prepend is used for insertion of an element in the begining of a data structure. Append is the one used for end insertion as mentioned above.

Connectez-vous pour commenter.

Plus de réponses (1)

geofo
geofo le 3 Déc 2021

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by