How to implement SeriesNetwork in Simulink (Deep Learning)

4 visualizaciones (últimos 30 días)
Patrick Haffmans
Patrick Haffmans el 18 de Feb. de 2021
I followed this youtube video to implement a neural network trained using trainNetwork in simulink.
The neural network takes in a 1x13 vector and ouputs a 1x13 vector (It is meant to be an autoencoder). There is a zero hold block with a sample time of 20s.
Following the predict block method, I got this size mismatch error.
Following the MATLAB function implementation,
function reg = output(u)
persistent network;
if isempty(network)
network = coder.loadDeepLearningNetwork('autoenc.mat','myautoenc');
end
reg = network.predict(u');
end
I get this error:
How do I fix this?

Respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by