Grab filename with tdfread

2 vues (au cours des 30 derniers jours)
Brian
Brian le 24 Oct 2017
Commenté : KL le 24 Oct 2017
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

Réponses (2)

KL
KL le 24 Oct 2017
Modifié(e) : KL le 24 Oct 2017
use
filename = uigetfile
then for the title of the plot,
title(filename)
  5 commentaires
per isakson
per isakson le 24 Oct 2017
Modifié(e) : per isakson le 24 Oct 2017
It seems you have to do something like
filename = uigetfile
tdfread ( filename )
if you want to use tfdread
KL
KL le 24 Oct 2017
Exactly

Connectez-vous pour commenter.


Brian
Brian le 24 Oct 2017
Thanks! This was it.

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by