How to convert a mixed array to cell array

1 回表示 (過去 30 日間)
Kanakaiah Jakkula
Kanakaiah Jakkula 2016 年 5 月 28 日
コメント済み: Star Strider 2016 年 5 月 28 日
Hi,
I have a mixed array (cell, numeric, string), but I eventually want to convert all to cell. Can any one tell how to do this.
Thanks,

採用された回答

Star Strider
Star Strider 2016 年 5 月 28 日
The documentation for Cell Arrays should provide all the information you need.
  2 件のコメント
Kanakaiah Jakkula
Kanakaiah Jakkula 2016 年 5 月 28 日
But, few coulmns of my data is cell array, and other half is double, I want to convert the every thing to cell array. How can I do this.
Star Strider
Star Strider 2016 年 5 月 28 日
Without seeing it I cannot say for sure. There are simply too many possibilities to cover them all.
Something like this would be the simplest approach:
Everything = {Cell_Array, {Double_array}, {String_Array}};
Experiment with that (and refer to the documentation link I provided) to get the result you want.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by