Filter löschen
Filter löschen

How to add Elements from a "double array" in a "specified column" of cell array ....

13 Ansichten (letzte 30 Tage)
I have a CELL ARRAY (stored in variable "Alpha") of 20 X 10 order.
It has text say "Boy", "Girl" etc. in first column.
There is a DOUBLE ARRAY (stored in variable Beta) of 20 X 4 order.
I wish to copy the contents of its first column into second column of the CELL ARRAY.
Please help.

Akzeptierte Antwort

the cyclist
the cyclist am 6 Apr. 2013
One possible way:
>> Alpha(:,2) = num2cell(Beta(:,1));

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by