[SciPy-user] io.loadmat
Travis Oliphant
oliphant.travis at ieee.org
Sun Feb 5 03:04:54 EST 2006
Ryan Krauss wrote:
>Any news on this? It is not a show stopper for me but has forced me
>to first process my experimental data on my wife's computer with old
>scipy. I don't want to lose this functionality in new scipy.
>
>
>
I can read the figure5.mat file in the matfile2.tar.gz file linked on
your page.
>>> import scipy.io
>>> scipy.io.loadmat('figure5.mat')
{'exp_ph_v2th2': array([-360. , -279.81217165, -270.1051963 ,
..., -364.58973674,
-89.8948037 , -80.18782835]), 'oof_mag_v2th2': array([
2.29149631e+02, 2.26880824e+02, 2.24656504e+02, ...,
3.82075299e-02, 3.81446544e-02, 3.80819791e-02]),
'__header__': 'MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Feb
25 18:08:42 2005', 'exp_mag_v2th2': array([ 1133.66018 ,
5.11327559, 5.88005405, ..., 22.16197655,
5.88005405, 5.11327559]), 'oof_ph_v2th2':
array([-90.09687897, -90.0965209 , -90.09617577, ..., -88.48426274,
-88.48934695, -88.49440268]), 'exp_freq': array([
0.00000000e+00, 2.38095238e-02, 4.76190476e-02, ...,
4.99952381e+02, 4.99976190e+02, 5.00000000e+02]),
'__version__': '1.0', 'oof_freq': array([ 1.59154943e-02,
1.60746493e-02, 1.62338042e-02, ...,
9.51746560e+01, 9.53338109e+01, 9.54929659e+01])}
>>> scipy.__version__
'0.4.5.1596'
>>> import numpy
>>> numpy.__version__
'0.9.5.2052'
-Travis
More information about the SciPy-User
mailing list