HOW TO REMOVE QUOTE MARK ?
古いコメントを表示
I have a data (4259*1 cell ) ex: '9'

I want to remove the quotes mark
i try :
j=1;
for i=1:R
D(j)=t{i};
j=j+1;
end
w=D';
but its fake remove them as when i try to use the numbers or copy to excel the quotes appear again
how to remove the quotes or convert them to (4259*1 double)?
1 件のコメント
Image Analyst
2015 年 9 月 17 日
Show your code. It looks like you're trying to do something with xlswrite('vital signs.xlsx'.....) but we can't see it. What do you want? Do you want to write t, D, or w to a workbook file? And you want the workbook file to be numbers, not strings with quotes in front of them?
採用された回答
その他の回答 (2 件)
Jon
2015 年 9 月 17 日
What happens if you try
tnum = str2num(cell2mat(t));
2 件のコメント
Walter Roberson
2015 年 9 月 17 日
str2double() is better than str2num()
Amr Hashem
2015 年 9 月 17 日
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!