Borrar filtros
Borrar filtros

Matlab figure with a variable in it

3 visualizaciones (últimos 30 días)
wallflower
wallflower el 30 de Abr. de 2020
Comentada: wallflower el 12 de Mayo de 2020
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

Respuestas (1)

Geoff Hayes
Geoff Hayes el 30 de Abr. de 2020
wallflower - you can set the name property of the figure. Perhaps try
temperature = 90;
hFigure = figure('Name',sprintf('figure_%d', temperature));

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by