Use of Arrays in Simulink
Mostrar comentarios más antiguos
hey,
I am reading a predefined array in a constant block in Simulink which then undergoes some simple logical operations like '<','>','and', etc. the output of which goes into an 'If' block.
This gives me an error as the input to the 'If' block has to be a single value and I seem to be inputting values of the length of my original array.
Is there some kind of a work around anyone could suggest?
Thanks, Dhruv
2 comentarios
Azzi Abdelmalek
el 13 de Ag. de 2013
Can you give an example of your array?
Respuesta aceptada
Más respuestas (3)
Kaustubha Govind
el 13 de Ag. de 2013
0 votos
Chandrasekhar
el 13 de Ag. de 2013
0 votos
have u tried using an assignment block
Dheeraj Kapur
el 13 de Jul. de 2017
0 votos
Hi, You can use a logic which I like to call the "moving" logic. You define the array in workspace, pass each of them into a decision box where if the value is less than 5 then replace it with 0; otherwise keep it same. Reconfigure the array on the other side and proceed as needed
Categorías
Más información sobre Event Functions en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
