HOW TO REMOVE QUOTE MARK ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Amr Hashem
am 17 Sep. 2015
Kommentiert: Amr Hashem
am 17 Sep. 2015
I have a data (4259*1 cell ) ex: '9'
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149191/image.jpeg)
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 Kommentar
Image Analyst
am 17 Sep. 2015
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?
Akzeptierte Antwort
Kirby Fears
am 17 Sep. 2015
Bearbeitet: Kirby Fears
am 17 Sep. 2015
Hi amr,
You shouldn't be copying the values out of the variable editor like that.
Try using
xlswrite('output.xlsx',t);
This will directly write the values to excel for you without parentheses.
Hope this helps.
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!