importNetworkFromONNX error due to mex
66 views (last 30 days)
Show older comments
I'm trying to import an ONNX model into Matlab 2025a. However, when I run the command 'importNetworkFromONNX', there is something wrong with the MEX file. Here are the error messages:
MEX 文件
'C:\ProgramData\MATLAB\SupportPackages\R2025a\toolbox\nnet\supportpackages\onnx\+nnet\+internal\+cnn\+onnx\onnxmex.mexw64'
无效: 找不到指定的程序。
0 Comments
Accepted Answer
Esther
on 30 Jul 2025
This seems to be a known issue in MATLAB R2025a Update 1.
Please contact MathWorks Technical Support: Contact Support - MATLAB & Simulink
2 Comments
Jianghao Wang
16 minutes ago
Hello, can you please share what release you are on right now?
If you are on R2025a, the issue should have been fixed.
If you are on R2025b, can you please advise the exact release/update info?
Depending on your release info, here are some potential solutions:
- use MATLAB Online https://matlab.mathworks.com (this should always work regardless of release)
- revert to your previously working MATLAB release, following the instruction here https://www.mathworks.com/matlabcentral/answers/473278-how-can-i-roll-back-a-matlab-update
- wait for the next support package monthly update - you will receive a notification when starting a new MATLAB session, suggesting new updates are available. The issue should be fixed once the update is installed.
Thank you.
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!