Plot Xy Graph

broken image


Display X-Y plot of signals using MATLAB figure window

  1. Plot Graph
  2. Plot Xy Graph In R
  3. Plot My Graph Online
  4. Plot Xy Graph Online
  5. Plot Xy Graph

If you want to plot two Waveform on an X-Y graph using NXG you can do it as shown in the Snippet below. First, the two Sine Waveform functions generate two Sine waves, then the Waveform properties function gets the Y values of these waves and put them in a 1 dimensional array. Create online graphs and charts. Choose from different chart types, like: line and bar charts, pie charts, scatter graphs, XY graph and pie charts.

  • Plot (X,Y) creates a 2-D line plot of the data in Y versus the corresponding values in X. If X and Y are both vectors, then they must have equal length. The plot function plots Y versus X. If X and Y are both matrices, then they must have equal size.
  • Create online graphs and charts. Choose from different chart types, like: line and bar charts, pie charts, scatter graphs, XY graph and pie charts.
  • Interactive, free online graphing calculator from GeoGebra: graph functions, plot data, drag sliders, and much more!
Graph

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.

Input

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 | int64 | uint8 | uint16 | uint32 | uint64 | 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 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

Parameters

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

Graph
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'
Free online plotting tool

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.

Input

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 | int64 | uint8 | uint16 | uint32 | uint64 | 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 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

Parameters

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'

Sample time — Sample time
-1 (default) | positive number

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

Plot Graph

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

Model Examples

Casino max promo codes. Plots a circle in Simulink using an XY Graph block.

Block Characteristics

Data Types

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

Direct Feedthrough Portuguesai.

no

Multidimensional Signals

no

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

Plot Xy Graph In R

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

This block can be used for simulation visibility in systems that generate code, but is not included in the generated code.

HDL Code Generation
Generate Verilog and VHDL code for FPGA and ASIC designs using HDL Coder™.

This block can be used for simulation visibility in subsystems that generate HDL code, but is not included in the hardware implementation.

Plot My Graph Online

PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.

This block can be used for simulation visibility in systems that generate PLC code, but is not included in the generated code.

Plot Xy Graph Online

Fixed-Point Conversion
Design and simulate fixed-point systems using Fixed-Point Designer™.

This block accepts fixed-point input, but converts it to double for display.

See Also

Plot Xy Graph

Topics

  • Get Started with ROS in Simulink® (ROS Toolbox)




broken image