诛仙小说结局:solem's vision blog: Reading and writing .mat files with Python
来源:百度文库 编辑:九乡新闻网 时间:2024/07/14 19:50:49
Reading and writing .mat files with Python
If you have some old data, or find some interesting data set online,stored in Matlab's .mat file format it is possible to read this usingthe scipy.io module in SciPy. This is how to do it.
data = scipy.io.loadmat('test.mat')
"data"now contains a dictionary with keys corresponding to the variable namessaved in the original .mat file. The variables are in array format.Saving to .mat files is equally simple. Just create a dictionary withall variables you want to save and use savemat().
data = {}
data['x'] = x
scipy.io.savemat('test.mat',data)
This saves the array x so that it has the name "x" when read into Matlab. More information on scipy.io can be found in the online documentation.
solem's vision blog: Reading and writing .mat files with Python
Super Tables - HTML Tables with Fixed Headers and More - Matt's 411 - A Web Developer's Blog
Jetty and Cloud Computing : Jan's Blog
python共享内存 - DK's Blog - 博客园
Reading List for Computer Vision Newbie
Tom Baeyens's Blog: About BPM miracles and wh...
It`s worth reading.
Machine Learning for Graphics, Vision and Mul...
Traditional wedding with style of Han and Tang dynasties held in Luoyang, China's Henan - People's Daily Online
[Python]Basic Blog in 0.3
[Python]Getting RESTful with web.py
Herbert Boeckenhaupt’s secret writing ? SpyNe...
Real-Time 3D SLAM with Wide-Angle Vision
An Outline Of Reading Theory And Practice
The following files from Microsoft's WAIK
[Python]MySQLdb User's Guide
An introduction to Excel and XML data files
Breaking Firewalls with OpenSSH and PuTTY
Italian Meatballs With Pasta And Tomato Sauce...
how to meet and connect with women
A vision for ruling CPC Li Hong's column
A vision for ruling CPCLi Hong's column
reading
佛往今来(liuyq502'S Blog)