Grab filename with tdfread
古いコメントを表示
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
回答 (2 件)
use
filename = uigetfile
then for the title of the plot,
title(filename)
5 件のコメント
Brian
2017 年 10 月 24 日
KL
2017 年 10 月 24 日
the argument you pass to tdfread is the file's name. If you don't have it, how do you execute that command in the first place?
Brian
2017 年 10 月 24 日
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
KL
2017 年 10 月 24 日
Exactly
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!