This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

XY Graph

Display X-Y plot of signals using MATLAB figure window




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 Port Location After Rotating or Flipping 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 does not appear.

A figure window appears for each XY Graph block in the model at the start of simulation.

Data Type Support

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

  • Floating point

  • Built-in integer

  • Fixed point

  • Boolean

For more information, see Data Types Supported by Simulink in the Simulink® documentation.

    Note:   The XY Graph block does not support stepping back in a simulation.



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


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


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


Specify 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 Specify Sample Time in the Simulink documentation for more information.


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

When you simulate the model, a figure window appears.


Data Types

Double | Single | Boolean | Base Integer | Fixed-Point

Sample Time

Specified in the Sample time parameter

Multidimensional Signals


Variable-Size Signals


Zero-Crossing Detection


Code Generation


Introduced before R2006a

Was this topic helpful?