Grab filename with tdfread

4 ビュー (過去 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
KL
KL 2017 年 10 月 24 日
Exactly

サインインしてコメントする。


Brian
Brian 2017 年 10 月 24 日
Thanks! This was it.

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by