필터 지우기
필터 지우기

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