How can i create a function block in simulink that takes multiple input vectors as arguments?

70 visualizzazioni (ultimi 30 giorni)
From the image attached the function block uses u(u[1])t input u[2] from second input, etc. I keep getting errors if i implement it as shown using a Matlab function block

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 2 Dic 2022
Assume the same input, inside the MATLAB Function block, use u(1), u(2) to reference, not u[1], u[2].

Più risposte (0)

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by