Grab filename with tdfread
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I am using tdfread to open a file and assign variable names. Is there a way to pick off the filename when the selecting the file? I would like to add the file name to the title of a plot.
Thanks.
Brian
0 件のコメント
回答 (2 件)
  KL
      
 2017 年 10 月 24 日
        
      編集済み: KL
      
 2017 年 10 月 24 日
  
      use
 filename = uigetfile
then for the title of the plot,
 title(filename)
5 件のコメント
  per isakson
      
      
 2017 年 10 月 24 日
				
      編集済み: per isakson
      
      
 2017 年 10 月 24 日
  
			It seems you have to do something like
filename = uigetfile
tdfread ( filename )
if you want to use tfdread
参考
カテゴリ
				Help Center および File Exchange で Workspace Variables and MAT Files についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


