Problem in convert cell to string.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a cell show like this
% code
val =
title="
google
">
The value is 3*7 char. If I want to convert into string to be ---> title="google"> What can I do? I have found many solution but can't help for this one. Thank you.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 7 Jan. 2015
S = reshape(A',1,[])
No reason to convert to and from a cell.
3 Kommentare
Sean de Wolski
am 7 Jan. 2015
Bearbeitet: Sean de Wolski
am 7 Jan. 2015
Ahh, I didn't realize cellstr implicitly calls deblank. Good to know!
Siehe auch
Kategorien
Mehr zu Characters and Strings 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!