필터 지우기
필터 지우기

Matlab figure with a variable in it

조회 수: 3 (최근 30일)
wallflower
wallflower 2020년 4월 30일
댓글: wallflower 2020년 5월 12일
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

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by