index in safe-title
Mostrar comentarios más antiguos
I would like to define my file with the title, so that includes the according index. I tried:
saveas(gcf,'title_t{n}','jpeg')
saveas(gcf,'title', t{n},'jpeg')
Either wont work - is there a way?
Thanks in advance!
Respuesta aceptada
Más respuestas (1)
KSSV
el 6 de Mayo de 2021
saveas(gcf,[title_t{n},'jpeg'])
4 comentarios
Lukas Netzer
el 6 de Mayo de 2021
Walter Roberson
el 6 de Mayo de 2021
saveas(gcf,['title_' t{n}],'jpeg'])
Lukas Netzer
el 6 de Mayo de 2021
Walter Roberson
el 6 de Mayo de 2021
What datatype is t{n} ? If it is numeric then
filename = sprintf('title_%g.jpg', t{n});
saveas(gcf, filename, 'jpeg')
Categorías
Más información sobre Characters and Strings 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!