subtitle on a 2x2 grid plot using sgtitle?

I have a 2x2 subplot with a 2 line title using a multiline cell array tile;
sgt = sgtitle({folderName,fileName});
which works fine.
What I would like is to be able to change the properties of the individual lines of text i.e. the first line (folderName) to be bold and 2 points bigger in fontsize.

 Respuesta aceptada

Voss
Voss el 16 de Jun. de 2022
Editada: Voss el 16 de Jun. de 2022
folderName = 'MATLAB folder';
fileName = 'test.m';
sgt = sgtitle({['{\bf\fontsize{14}' folderName '}'],fileName});

2 comentarios

Michael O'Brien
Michael O'Brien el 16 de Jun. de 2022
you absolute donny don!
thank you, Voss!
Voss
Voss el 16 de Jun. de 2022
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2020a

Preguntada:

el 16 de Jun. de 2022

Comentada:

el 16 de Jun. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by