Converting a cell to string

3 visualizaciones (últimos 30 días)
Mitchell
Mitchell el 26 de En. de 2012
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.

Respuestas (1)

Andrew Newell
Andrew Newell el 27 de En. de 2012
Use char.

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by