Array Creation in simulink with size value from a simulink block
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Balaji Ramesh Sri
el 28 de Dic. de 2022
Respondida: Sulaymon Eshkabilov
el 28 de Dic. de 2022
Hii... I need to do ones(1,N) in simulink , where N comes from a output of a simulink block (N is a integer). I dont want to use matlab functions. Any ideas would be useful.
0 comentarios
Respuestas (1)
Sulaymon Eshkabilov
el 28 de Dic. de 2022
One of the possible options is to use the [eye] and extract diagonal blocks - see attached simple Simulink model. The size of the identity matrix (diagonal) should be defined in MATKLAB workspace.
0 comentarios
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!