how to swap input interfaces with each other without using switch or if block?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Amit
el 4 de Abr. de 2018
Respondida: Birdman
el 4 de Abr. de 2018
eg. I have four input interfaces H1,H2,H3 & H4. So based on some valid condition i have to swap these signals like this (H4->H1,H3->H2,H2->H3,H1->H4). I had implemented this using switch block but since i have so many interfaces, it is creating mess in the code as well as design also. Is there any alternative way to implement optimized design for this? Implemented image is attached.
0 comentarios
Respuesta aceptada
Birdman
el 4 de Abr. de 2018
Use a MATLAB Function block. You will be writing if else if or switch statements as if you were writing it on MATLAB command line.
0 comentarios
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!