필터 지우기
필터 지우기

Simulink - swapping inputs horizontally

조회 수: 1 (최근 30일)
Peter
Peter 2012년 2월 14일
편집: Azzi Abdelmalek 2013년 10월 13일
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

답변 (3개)

Kaustubha Govind
Kaustubha Govind 2012년 2월 14일
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
Peter
Peter 2012년 2월 15일
Thanks for the response but this is not what I'm looking for.
I don't want to do something with the input data, only want the block appearance to change.
The reason I want to flip inputs is to avoid to have cross-lines in the model.
It's not a very big problem, but I just wanted to know is I'm overlooking something. Vertical flip is already supported with the "Format/Flip Block" command so maybe there should be a "Format/Flip Block horizontally" command.

댓글을 달려면 로그인하십시오.


Ilham Hardy
Ilham Hardy 2012년 2월 15일
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
Peter
Peter 2012년 2월 15일
Thanks for the response.
I also found that option and works for my own models and only if I use it once (and only if I use it in one model).
So for me this is not the solution I'm looking for.
I think the option I'm looking for is just not available at this moment. It could be a future feature.

댓글을 달려면 로그인하십시오.


Ilham Hardy
Ilham Hardy 2012년 2월 15일
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

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by