String array to 1d string by adding the new line character
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
RR RR
el 9 de Nov. de 2019
Comentada: RR RR
el 9 de Nov. de 2019
Hello All,
Say that you have nx1 string array A such as follows:
A=["Hello Matlab"; "this is 12345"; "so we are going to" ; "have fun"]
how can I combine them into a 1x1 string but by adding a new line chacter after each string i.e."
A=["Hello Matlab\nthis is 12345\nso we are going to\nhave fun"]
Thanks
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!