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

2 visualizaciones (últimos 30 días)
A VP
A VP el 17 de Mayo de 2018
Respondida: Geoff Hayes el 17 de Mayo de 2018
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.

Respuestas (1)

Geoff Hayes
Geoff Hayes el 17 de Mayo de 2018
A - see load which describes how to load a mat file given the filename.

Categorías

Más información sobre Environment and Settings 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