transform the cell 'string' containing strings into a single string
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alberto Acri
el 6 de Sept. de 2023
Respondida: Paul
el 6 de Sept. de 2023
Hi! I need to transform the cell 'string' containing strings into a single string, like this:
string_new = "54 55 56 57 59 60 61 62 63 69 ";
0 comentarios
Respuesta aceptada
Voss
el 6 de Sept. de 2023
One way:
load string.mat
S = string; % I rename your variable "string" and clear it
clear string % because I'm going to use the string() function
string_new = append(join(string(S)," ")," ")
0 comentarios
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!