MATLAB Answers

How to fit to view custom masked block permanently?

조회 수: 2(최근 30일)
I was created custom library, it works, but one thing is quite annoying. When i open my library and unlock it, then go to 'look under mask', it opens out of view:
MyLib.png
UnderMask.png
scroll.png
I tried to fit it using the "fit to view" option, then save it, but after reopening, nothing changes.
How to save the default view permanently?

  댓글 수: 0

로그인 to comment.

채택된 답변

Wojciech Wargula
Wojciech Wargula 20 Nov 2019
Okay, I made it. The problem was that I wasn't moving elements actually, but background. So if someone will face a similar problem, I recommend do not moving background after open subsystem/mask, because it will come back to its zero position after reopen. Just select blocks, then drag and drop it.

  댓글 수: 0

로그인 to comment.

More Answers (1)

Fangjun Jiang
Fangjun Jiang 20 Nov 2019
Select All, move all the blocks to the top-left cornor as close as possible.

  댓글 수: 6

표시 이전 댓글 수: 3
Wojciech Wargula
Wojciech Wargula 20 Nov 2019
Okay, I made it. The problem was that I wasn't moving elements actually, but background. So if someone will face a similar problem, I recommend do not moving background after open subsystem/mask, because it will come back to its zero position after reopen. Just select blocks, then drag and drop it.
Fangjun Jiang
Fangjun Jiang 20 Nov 2019
Every block has a property called "Position". It is in relevant to the top-left corner. Once you save the model, try to reload the library or re-start MATLAB.
Wojciech Wargula
Wojciech Wargula 20 Nov 2019
Thank you for your help, you helped me find a solution.
By the way, it's quite confusing that the position of the blocks refers to a corner that you can't see, and you don't know where it is if you moved the background. It would be nice if the simulink had a "restore background to the starting position" button, or there could be a marker that the coordinate system starts there.

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

제품


릴리스

R2015b

Translated by