Info

この質問は閉じられています。 編集または回答するには再度開いてください。

i want to convet a mixture cell array to a cell array that just has string values.

1 回表示 (過去 30 日間)
fatemeh
fatemeh 2013 年 12 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
i have a data set ,i convert it to cell array with this code :C = dataset2cell(ds)
but the values of this cell array are double and string. i want dataset values just be string! thanks!

回答 (1 件)

Image Analyst
Image Analyst 2013 年 12 月 22 日
Use char() to convert string cells to strings. Use num2str() to convert the doubles to strings.
  3 件のコメント
Image Analyst
Image Analyst 2013 年 12 月 22 日
Give a small example of your cell, say 3 rows or so.
fatemeh
fatemeh 2013 年 12 月 22 日
u know like these d={30 'hskjhs' 3 'kjk'} f={90 'kj' 3 'kjfk'} can i compare these?

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by