Hi,
Do you mind sharing a little bit of information regarding your setup, such as Spyder version and OS? That helps us to understand what is happening on your end since Spyder has seen a lot of changes the last few months.
The importing of Matlab variables is done in spyderlib/utils/iofuncs.py. You can browse through the current version here, or look at the version from Stevens branch here (there is pull request on that here). The latter holds certain improvements that have not yet been merged with the main Spyder development branch.
A small example (taken from iofuncs.py from Stevens branch) on how you could import Matlab variables using a script:
from spyderlib.utils.iofuncs import get_matlab_value
import scipy.io as spio
out = spio.loadmat(filename)
for key, value in list(out.items()):
out[key] = get_matlab_value(value)
# now you can access the variable(s) you saved in the matlab file as follows
matlab_var = out['matlab_var_name']
# all matlab variables are nested under matlab_var and are accessible as a dictionaries
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.