Grab filename with tdfread
이전 댓글 표시
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개)
use
filename = uigetfile
then for the title of the plot,
title(filename)
댓글 수: 5
Brian
2017년 10월 24일
KL
2017년 10월 24일
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
2017년 10월 24일
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
2017년 10월 24일
Exactly
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!