Effacer les filtres
Effacer les filtres

Cut lines in Simulink

27 vues (au cours des 30 derniers jours)
Marcello Asciolla
Marcello Asciolla le 31 Mai 2017
Imagine a Simulink file and a line inside it from input (1), imagine that this line is very very ramified and linked to many different outputs. Now I want to change that from input (1) to input (2). Is there a fast way to move this line with the mouse/keyboard? I would not like to delete it and after create all the links again.

Réponses (2)

Marcello Asciolla
Marcello Asciolla le 31 Mai 2017
I solved that. There are two ways: 1)delete the input, 2)copy the line, delete it and paste it. The difference between these two cases is that in the second one the user can see that the line mantain its shape like the first one, but it must be considered that it is not linked to the outputs too.

Franz Faschinger
Franz Faschinger le 7 Jan 2022
One method is to drag a block with one input and one output (e.g. a gain block) to the location where the line shall be cut. Simulink automatically cuts the line and connects the ends to the block.
After that the block can be deleted or moved away by holding the shift key, then move the block with the mouse (left click).

Community Treasure Hunt

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

Start Hunting!

Translated by