Matlab figure with a variable in it
Afficher commentaires plus anciens
Hello,
I am using a function that computes few vectors products so as to plot figures.
I want to be able to have a figure name for example 'figure_90', where 90 is the temperature variable I define in script.
Thanks in advance
Réponses (1)
Geoff Hayes
le 30 Avr 2020
wallflower - you can set the name property of the figure. Perhaps try
temperature = 90;
hFigure = figure('Name',sprintf('figure_%d', temperature));
1 commentaire
wallflower
le 12 Mai 2020
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!