Grab filename with tdfread

4 visualizaciones (últimos 30 días)
Brian
Brian el 24 de Oct. de 2017
Comentada: KL el 24 de Oct. de 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

Respuestas (2)

KL
KL el 24 de Oct. de 2017
Editada: KL el 24 de Oct. de 2017
use
filename = uigetfile
then for the title of the plot,
title(filename)
  5 comentarios
per isakson
per isakson el 24 de Oct. de 2017
Editada: per isakson el 24 de Oct. de 2017
It seems you have to do something like
filename = uigetfile
tdfread ( filename )
if you want to use tfdread
KL
KL el 24 de Oct. de 2017
Exactly

Iniciar sesión para comentar.


Brian
Brian el 24 de Oct. de 2017
Thanks! This was it.

Categorías

Más información sobre Workspace Variables and MAT Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by