subplot

Version:

Generates a plot window with multiple plots. subplot(a,b,c) generates a plot window with a rows and b columns of plots.

Note

You can only use the subplot function in the MathScript Console.

Syntax

subplot(a, b, c)
subplot(a b c)

a

Number of rows of plots to generate. a is a positive integer.

b

Number of columns of plots to generate. b is a positive integer.

c

Active plot according to the row-wise linear order of the plots. c is a positive integer between 1 and a*b.

abc

The number of rows, i, the number of columns, j, to generate, as well as the active plot, k. i, j, and k are positive integers between 1 and 9.

X = 0:10;
Y = X.*X;
subplot(2, 1, 1)
plot(X)
subplot(2, 1, 2)
plot(Y)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported