For iterator subsystem output cannot hold one sample time
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi, guys, I created a for iterator subsystem to get input's index, but the output cannot hold for one sample time, do you know what's going on here, thanks for your reply.
Input is mux signals and size is 20, N is 20.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1537515/image.png)
the output is weird
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1537520/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1537525/image.png)
1 comentario
Fangjun Jiang
el 13 de Nov. de 2023
It seems you are not using the for-itertor correctly. Explain what you try to achieve. There might be a simple solution.
Respuestas (1)
madhan ravi
el 26 de Nov. de 2023
The picture doesn't show the x axis ticks. The input signal values are not shown to us. It is important to note that the signal data type of the input signal unless it is an uint or int or a boolean unexpected behaviour can b expected. If not make sure to convert the signal data type to the ones I mentioned above before comparing it to zero.
0 comentarios
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!