Hey,
I am trying to use the load function and point assignement to load data using strings.
Currently I am using a code like this, to access variables via their string names.
a=load('filename.mat')x=a.('variable_name')
But it can get annoying and time intensive to load the mat file seperately.
Is it possible to skip the a=load part and just to assign x directly through the workspace?
I want basically something like this:
x=workspace.('variable_name');
Thank you.
Best Answer