Simulink: How to use a structure as output signal?
Mostra commenti meno recenti
Hi,
I have many signals in my simulink modell, that I want to convert into a structure. So I use a matlab function block, that looks like this:
function mystruct = create_struct( u )
mystruct.a = u(1);
mystruct.b = u(2);
end
Then I want to use this "struct-output" as input for another function. But this seems not to work. Have you any idea how to solve this? Thanks
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Event Functions in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!