Grab filename with tdfread
Mostra commenti meno recenti
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
Risposte (2)
use
filename = uigetfile
then for the title of the plot,
title(filename)
5 Commenti
Brian
il 24 Ott 2017
KL
il 24 Ott 2017
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
il 24 Ott 2017
per isakson
il 24 Ott 2017
Modificato: per isakson
il 24 Ott 2017
It seems you have to do something like
filename = uigetfile
tdfread ( filename )
if you want to use tfdread
KL
il 24 Ott 2017
Exactly
Brian
il 24 Ott 2017
0 voti
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!