MATLAB Answers

3

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

Asked by fan feng on 8 Jun 2015
Latest activity Commented on by Clancy Tan on 24 Sep 2018
>>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.

  0 Comments

Sign in to comment.

Products

1 Answer

Answer by Walter Roberson
on 8 Jun 2015
 Accepted Answer

A{end+1} = c;

  1 Comment

Thank you so much.

Sign in to comment.