use directory title as title of plot
Mostra commenti meno recenti
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.
Risposte (1)
Image Analyst
il 19 Lug 2013
Use set() and set the "Name" property. For example:
set(gcf,'name','c:\Demos by ImageAnalyst\Awesome ones','numbertitle','off')
3 Commenti
Image Analyst
il 19 Lug 2013
Or for just a plot, not a whole figure, use title
title('c:/some folder', 'FontSize', 15);
Samuel
il 19 Lug 2013
Image Analyst
il 19 Lug 2013
pwd gets the current folder
title(pwd);
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!