Converting a cell to string

조회 수: 2 (최근 30일)
Mitchell
Mitchell 2012년 1월 26일
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일
Use char.

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by