Converting a cell to string

Specific problem is that
>> isequal(cellstr(dd), dd)
ans =
1
More generally I am trying to convert data such as 'P__ID" and '50 kPa(g)' to strings so that I can work with the data. My questions is what is the best way to right a cell array into a string array where the cells are data imported from excel. I am using the importdata command.

回答 (1 件)

Andrew Newell
Andrew Newell 2012 年 1 月 27 日

0 投票

Use char.

カテゴリ

ヘルプ センター および File ExchangeCell Arrays についてさらに検索

質問済み:

2012 年 1 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by