This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

XY Graph

Display X-Y plot of signals using MATLAB figure window

  • Library:
  • Simulink / Sinks

    HDL Coder / 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 from the first input (the x direction) against data from 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.

Note

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

Ports

Input

expand all

Plot input as x values on an X-Y plot. See Port Location After Rotating or Flipping for a description of the port order for various block orientations.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | fixed point

Plot input as y values on an X-Y plot. See Port Location After Rotating or Flipping for a description of the port order for various block orientations.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | fixed point

Parameters

expand all

Specify the minimum x-axis value. Data below the minimum x is ignored.

Programmatic Use

Block Parameter: xmin
Type: character vector
Values: real number
Default: '-1'

Specify the maximum x-axis value. Data above the maximum x is ignored.

Programmatic Use

Block Parameter: xmax
Type: character vector
Values: real number
Default: '1'

Specify the minimum y-axis value. Data below the minimum y is ignored.

Programmatic Use

Block Parameter: ymin
Type: character vector
Values: real number
Default: '-1'

Specify the maximum y-axis value. Data above the maximum y is ignored.

Programmatic Use

Block Parameter: ymax
Type: character vector
Values: real number
Default: '1'

Specify the time interval between samples. To inherit the sample time, set this parameter to -1. For more information, see Specify Sample Time.

Programmatic Use

Block Parameter: st
Type: character vector
Values: '-1' (for inherited) | positive number
Default: '-1'

Block Characteristics

Data Types

Boolean | double | enumerated | fixed point | integer | single

Direct Feedthrough

no

Multidimensional Signals

no

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

Introduced before R2006a