问题与网络类杂物ble on Matlab Function on Simulink

5 views (last 30 days)
Hello,
In my Simulink schematic I have a Matlab Function block, where I have written my code. In it, I use the function preparets , in an extrinsic way, defining it with coder.extrinsic('preparets') .
net = load('NARX_CMON');
X = tonndata(up,true,false);
T = tonndata(yk',true,false);
[x,xi,ai] = preparets(net,X,{},T);
The problem arises when I load the neural network to a net variable, which I use in the preparets function. The error I get is the following:
"Found unsupported class for variable using function 'load'. MATLAB class 'network' found at 'net.net' is unsupported."
I understand that when converting the Matlab Function to C code for execution in Simulink, Simulink does not support Network class variables.
Since the C language does not support Network variables, how should I load the network to use it in the preparets function? what can I do to solve this problem? how can this be done?

Answers (0)

Community Treasure Hunt

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

Start Hunting!