フィルターのクリア

Load symbolic matrix in python

11 ビュー (過去 30 日間)
mikel lasa
mikel lasa 2022 年 2 月 4 日
回答済み: Prasanna Konyala 2022 年 4 月 1 日
Hello,
I have a mat file with a symbolic matrix saved. I would like load this matrix in python, my attempt has been this but it doesnt work:
import scipy.io as sio
mSimbolica = sio.loadmat('D:/TFM/control derivativo/bucle_control/Msimbolica.mat')
mSimbolica
I need help please.
attached the .mat file

回答 (1 件)

Prasanna Konyala
Prasanna Konyala 2022 年 4 月 1 日
Hi
From my understanding, you are facing issue when loading mat file in python.
Loading mat files can cause an error if the version is not compatible with SciPy. Please check your mat file version using the following command:
dbtype filename 1
If the output contains Matlab 7.3 then your file is not compatible, and this needs hdf5 python library.
If version is 5.0 or nothing is specified, then your code should work fine.

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by