Break title into multiple lines? Part 2
Mostrar comentarios más antiguos
shows
title({'You can do it','with a cell array'})
works. Now supppose I have two string variables title1 and title2. How can one apply this method? I tried
title({[title1] [title2]})
But this does not seem to work.
Respuesta aceptada
Más respuestas (1)
Ameer Hamza
el 30 de Nov. de 2020
Editada: Ameer Hamza
el 30 de Nov. de 2020
What you have already wrote is the correct syntax
title1 = 'You can do it';
title2 = 'with a cell array';
title({[title1] [title2]})
You can also write it like this
title({title1 title2})
2 comentarios
alpedhuez
el 30 de Nov. de 2020
Categorías
Más información sobre Signal Radiation, Collection, and Reflection en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!