Products & Services Industries Academia Support User Community Company

Learn more about Simulink   

XY Graph - Display X-Y plot of signals using MATLAB figure window

Library

Sinks

Description

The XY Graph block displays an X-Y plot of its inputs in a MATLAB figure window.

The block has two scalar inputs. The block plots data in the first input (the x direction) against data in the second input (the y direction). (See How to Rotate a Block in Simulink User's Guide for a description of the port order for various block orientations.) This block is useful for examining limit cycles and other two-state data. Data outside the specified range is not displayed.

Simulink software opens a figure window for each XY Graph block in the model at the start of the simulation.

Data Type Support

The XY Graph block accepts real signals of the following data types:

Parameters and Dialog Box

x-min

The minimum x-axis value. The default is -1.

x-max

The maximum x-axis value. The default is 1.

y-min

The minimum y-axis value. The default is -1.

y-max

The maximum y-axis value. The default is 1.

Sample time

Specify the time interval between samples. To inherit the sample time, set this parameter to -1. See How to Specify the Sample Time in the Simulink documentation for more information.

Examples

The following model computes the points that define a circle of radius 4, centered at the origin of the x-y plane. The XY Graph block displays the circle.

Characteristics

Sample Time

Specified in the Sample time parameter

States

0

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS