how to load mat file(trained neural ode) in simulink matlab function.

조회 수: 20 (최근 30일)
Muhammad Faisal Khalid
Muhammad Faisal Khalid 2021년 11월 9일
답변: Salman Ahmed 2021년 11월 15일
i have trained a neural ode and save in mat file. ánd use this mat file in simulink to simulate.i used matlab function and load the mat file in it but after run simulation it shows error.(The output of a call to 'load' is not assigned to a variable. Assign its output to a variable without subscripting.).
kindly help me is this issue.
or how i can use the trained neural ode in simulink.? might be my approch of using matlab function is wrong.

답변 (1개)

Salman Ahmed
Salman Ahmed 2021년 11월 15일
Hi Muhammad,
You could try using the coder.load function that can be used to load the MAT files data at compile time and can be used in your MATLAB function block to load your ode MAT file. Note that the MATLAB Function block relies on code generation technology and has C/C++ code generation limitations. Hope it helps.


Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by