Predict模块中的MLFB报错

14 views (last 30 days)
辰磊
辰磊 on 15 Dec 2025 at 7:18
Answered: Jianghao Wang on 5 Jan 2026 at 19:29
重现步骤:
1.将MatLab 2025b的仿真程序slx格式文件导出为2020b版本;
2.在MatLab 2020b中,运行仿真程序时,Predict模块中的MLFB报错。
推荐的操作无法修复问题,而且程序在2025b中运行无误,为什么在2020b中却出现错误?
另外:在2020b中MLFB无法设置参数,而2025b中就可以(下图为2020b中MLFB的参数配置界面)

Accepted Answer

Jianghao Wang
Jianghao Wang on 5 Jan 2026 at 19:29
Hello 辰磊,
Thanks for reaching out. There were known issues of the predict block, and were fixed later. You can avoid the error by upgrading to a later release, for example, as you verified using R2025b.
If you are unable to upgrade, a possible workaround in R2020b is calling a wrapper predict function from a MATLAB Function Block. This wrapper function loads the network and calls predict. However, this will not be suitable for deployment workflows.
Please let me know if you have encountered additional issues.
Thank you,
Jianghao

More Answers (0)

Categories

Find more on 时序、序列和文本深度学习 in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!