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

1,178 次查看(过去 30 天)
>>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.

采纳的回答

Walter Roberson
Walter Roberson 2015-6-8
  6 个评论
Christopher Davis
Christopher Davis 2021-1-10
That's really helpful, not sure if it's proper terminology but I've heard this refered to as prepend
Pedro Miranda Pinheiro
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.

请先登录,再进行评论。

更多回答(1 个)

geofo
geofo 2021-12-3

类别

Help CenterFile Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by