1
使用Python,我想寫一個Matlab結構到磁盤。這是相當簡單的使用scipy.io模塊:http://docs.scipy.org/doc/scipy-0.9.0/reference/tutorial/io.html使用scipy將matlab函數保存到磁盤
不過,我想該結構的領域之一是形式@sqrt
這樣,當我加載.MAT文件保存到磁盤在MATLAB中,我得到的功能此功能:
>> myStruct = load('MyStruct.mat')
>> myStruct.myFunction(5)
ans =
2.2361
但我找不到如何做到這一點。只需將「@sqrt」字符串放入其中一個結構字段中即可。
謝謝!
正是我需要的。謝謝! – lollercoaster 2013-03-13 01:01:16