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

60 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 2 Dez. 2022
Assume the same input, inside the MATLAB Function block, use u(1), u(2) to reference, not u[1], u[2].
  2 Kommentare
Brian Kiprono
Brian Kiprono am 2 Dez. 2022
Thank you very much that worked,also do you have a good explanantion on why the square brackets don't work. Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by