Main Content

XY Graph

(Not recommended) Display XY plot of signals using MATLAB figure window

This version of the XY Graph block is not recommended. Use the XY Graph block in the Sinks library instead. For more information, see Compatibility Considerations.

  • XY Graph block

Description

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

XY Graph block displays a circle on an XY plot 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 Identify Port Location on Rotated or Flipped Block 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 Identify Port Location on Rotated or Flipped Block for a description of the port order for various block orientations.

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

Plot input as y values on an X-Y plot. See Identify Port Location on Rotated or Flipped Block for a description of the port order for various block orientations.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | 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'

Version History

Introduced before R2006a

expand all