- Configure your System to use Python: https://www.mathworks.com/help/releases/R2024b/matlab/matlab_external/install-supported-python-implementation.html
- Example demonstrating use of a Python module in MATLAB: https://www.mathworks.com/help/releases/R2024b/matlab/matlab_external/call-user-defined-custom-module.html
import mf4 without having Vehicle Network Toolbox
22 ビュー (過去 30 日間)
古いコメントを表示
I need to import into matlab mf4 files but I have no Vehicle Network Toolbox.
How can I import mf4 files into matlab without having Vehicle Network Toolbox?
0 件のコメント
回答 (1 件)
Govind KM
2025 年 7 月 17 日
Hi Jack,
An alternative to import an MF4 file in MATLAB without using the "mdfRead" function from the Vehicle Network Toolbox is to use the "mdfreader" Python library, found at the following link: https://pypi.org/project/mdfreader/
Once you install both Python and this "mdfreader" library, you can call Python functionality of this library directly from MATLAB by adding the "py." prefix to the name of the Python function that you want to call. For example, to read an MF4 file:
mdfobj=py.mdfreader.Mdf('VehicleData.mf4')
Now this "mdfobj" object can be worked with using functions from the "mdfreader" library to get the required data from the MF4 file.
Kindly refer to the following links for more information:
Hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Call Python from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!