Grab filename with tdfread

2 次查看(过去 30 天)
Brian
Brian 2017-10-24
评论: KL 2017-10-24
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 个)

KL
KL 2017-10-24
编辑:KL 2017-10-24
use
filename = uigetfile
then for the title of the plot,
title(filename)
  5 个评论
per isakson
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

请先登录,再进行评论。


Brian
Brian 2017-10-24
Thanks! This was it.

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by