Matlab script to load a .mat file based on entry in dialog box

1 回表示 (過去 30 日間)
A VP
A VP 2018 年 5 月 17 日
回答済み: Geoff Hayes 2018 年 5 月 17 日
I have a .m script that receives a number of user inputs. One of the styles is a listbox and the output of the list box is stored in an element 'Answer.List'. This is the name of the .mat file that I want to load into workspace. I am able to get the name of the .mat file in the variable Answer.List. How do I load this .mat file onto workspace?
Thank you in advance.

回答 (1 件)

Geoff Hayes
Geoff Hayes 2018 年 5 月 17 日
A - see load which describes how to load a mat file given the filename.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by