フィルターのクリア

use directory title as title of plot

2 ビュー (過去 30 日間)
Samuel
Samuel 2013 年 7 月 19 日
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
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 件のコメント
Samuel
Samuel 2013 年 7 月 19 日
Thanks for the reply.
Actually i was hoping for a routine that will automatically get the directory name(i wont have to specify the directory). this is because i was hoping to make one routine that i can copy and paste to the working directory and it will generate th title automatically, instead of me having to modify it for each directory.
Image Analyst
Image Analyst 2013 年 7 月 19 日
pwd gets the current folder
title(pwd);

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by