Using Simulink     Search    Help Desk 

Drawing a Line Segment

You may want to draw a line with segments exactly where you want them instead of where Simulink draws them. Or, you might want to draw a line before you copy the block to which the line is connected. You can do either by drawing line segments.

To draw a line segment, you draw a line that ends in an unoccupied area of the diagram. An arrow appears on the unconnected end of the line. To add another line segment, position the cursor over the end of the segment and draw another segment. Simulink draws the segments as horizontal and vertical lines. To draw diagonal line segments, hold down the Shift key while you draw the lines.

Moving a Line Segment

To move a line segment, follow these steps:

   1.
Position the pointer on the segment you want to move.


   2.
Press and hold down the left mouse button.


   3.
Drag the pointer to the desired location.


   4.
Release the mouse button.


You cannot move the segments that are connected directly to block ports.

Dividing a Line into Segments

You can divide a line segment into two segments, leaving the ends of the line in their original locations. Simulink creates line segments and a vertex that joins them. To divide a line into segments, follow these steps:

   1.
Select the line.


   2.
Position the pointer on the line where you want the vertex.


   3.
While holding down the Shift key, press and hold down the mouse button. The cursor shape changes to a circle that encloses the new vertex.


   4.
Drag the pointer to the desired location.


   5.
Release the mouse button and the Shift key.


Moving a Line Vertex

To move a vertex of a line, follow these steps:

   1.
Position the pointer on the vertex, then press and hold down the mouse button. The cursor changes to a circle that encloses the vertex.


   2.
Drag the pointer to the desired location.


   3.
Release the mouse button.




[ Previous | Help Desk | Next ]