Grab filename with tdfread

1 Ansicht (letzte 30 Tage)
Brian
Brian am 24 Okt. 2017
Kommentiert: KL am 24 Okt. 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

Antworten (2)

KL
KL am 24 Okt. 2017
Bearbeitet: KL am 24 Okt. 2017
use
filename = uigetfile
then for the title of the plot,
title(filename)
  5 Kommentare
per isakson
per isakson am 24 Okt. 2017
Bearbeitet: per isakson am 24 Okt. 2017
It seems you have to do something like
filename = uigetfile
tdfread ( filename )
if you want to use tfdread
KL
KL am 24 Okt. 2017
Exactly

Melden Sie sich an, um zu kommentieren.


Brian
Brian am 24 Okt. 2017
Thanks! This was it.

Kategorien

Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by