Simulink - swapping inputs horizontally
Afficher commentaires plus anciens
I sometimes need to use a block (sub-system or standard) for which I would like to swap the inputs horizontally. I know that it can be done vertically with the "Format/Flip block" command but horizontally flipping I can not find.
Any ideas?
Best regards, Peter
Réponses (3)
Kaustubha Govind
le 14 Fév 2012
0 votes
Did you mean the Flip block from the DSP Toolbox? If yes, it looks like it allows you to flip along both rows as well as columns?
1 commentaire
Peter
le 15 Fév 2012
Ilham Hardy
le 15 Fév 2012
0 votes
You could 're-number' the input by clicking Input block inside your submodel.. Arrange it as you will to avoid 'cross-line'..
HTH, IH
1 commentaire
Peter
le 15 Fév 2012
Ilham Hardy
le 15 Fév 2012
0 votes
I don't understand the reason why you don't want to re-arrange the inputs.
However, there is a way to emulate what you called 'horizontal flip. Follow the steps below:
1. Right click the submodel, select Mask Subsystem...
2. On Icon and Ports tab, Set Icon Rotation to Rotates and set Port Rotation to Physical.
3. Apply and OK
4. With submodel selected, press Ctrl+R, Ctrl+R, Ctrl+I to horizontally flip the subsystem.
HTH,
IH
Catégories
En savoir plus sur Iterator Subsystems dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!