How can i create a function block in simulink that takes multiple input vectors as arguments?
60 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Brian Kiprono
el 2 de Dic. de 2022
Comentada: Fangjun Jiang
el 2 de Dic. de 2022
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
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 2 de Dic. de 2022
Assume the same input, inside the MATLAB Function block, use u(1), u(2) to reference, not u[1], u[2].
2 comentarios
Fangjun Jiang
el 2 de Dic. de 2022
It is defined that way.
See "doc paren" to know the usage of (), {}, []
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Functions 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!