use directory title as title of plot
이전 댓글 표시
hello, i have a test program that i run where the results are stored in specific directories. I wanted to see if there is an easy way to code it so that the title of the plot will just show the directory name.
thanks in advance for the help.
답변 (1개)
Image Analyst
2013년 7월 19일
Use set() and set the "Name" property. For example:
set(gcf,'name','c:\Demos by ImageAnalyst\Awesome ones','numbertitle','off')
댓글 수: 3
Image Analyst
2013년 7월 19일
Or for just a plot, not a whole figure, use title
title('c:/some folder', 'FontSize', 15);
Samuel
2013년 7월 19일
Image Analyst
2013년 7월 19일
pwd gets the current folder
title(pwd);
카테고리
도움말 센터 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!