For loops and figure window title

조회 수: 2 (최근 30일)
Debbie Oomen
Debbie Oomen 2017년 11월 3일
댓글: KL 2017년 11월 3일
I have several figures. I want the title of the window figure to say the basename of the file belonging to the figure. The figures are in a loop. So the code for looping the figures without overwriting one another is:
figure(i)
but how can I change this title to my basename?

채택된 답변

KL
KL 2017년 11월 3일
figure('Name',basename{k},'NumberTitle','off')
  댓글 수: 6
Debbie Oomen
Debbie Oomen 2017년 11월 3일
Yes, I tried this as well but unfortunately 2 out of the 3 figures get plotted correctly (each figure has 4 subplots), but 1 out of the 3 opens a whole new figure without a basename title with one subplot.. I do not know how to fix this..
KL
KL 2017년 11월 3일
It's hard to guess why without knowing more details. Try to set a breakpoint and run it step by step maybe.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Title에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by