I am trying to load a MAT file and getting a dataset as an output. If I run
a = load('foo.mat');
a is a structure and not a dataset. In order to get a dataset I need to run the following code
load('foo.mat');
a = foo;
Though, in this way in my workspace I have two identical datasets, specifically a and foo.
Is there a way to just write a line of code and import the MAT file and get a single dataset rather than two?