-
Notifications
You must be signed in to change notification settings - Fork 9
plot
Visualizes a given set of points in form of a graph.
Performs the plot of a matrix. The first column is interpreted as x-values if more than one column is given. All other columns will be interpreted as y-values.
Argument m
Matrix
Returns 1. entry
Plot2D
plot(2^1:16)
Plots the powers of 2 with y = 2, 4, 8, ..., 65536 at x = 1, 2, ..., 16 (since no X values are given).
plot([0:10, 2^(0:2:20)])
Plots the even powers of 2 with y = 1, 4, 16, ..., 2^20 at x = 0, 1, ..., 10.
plot([0:10, 2^(0:2:20), 2^(1:2:21)])
Plots the even and odd powers of 2 at x = 0, 1, ..., 10.
Performs the plot of a matrix. The first column is interpreted as x-values if it has only one column. In this case the columns of the second matrix are interpreted as a collection of y-values. Otherwise both matrices are viewed as a collection of y-values corresponding to a set of x-values.
Argument m
Matrix
Argument n
Matrix
Returns 1. entry
Plot2D
plot(0:15, 2^1:16)
Plots the powers of 2 with y = 2, 4, 8, ..., 65536 at x = 0, 1, ..., 15.
plot([1:11, 2^(1:2:21)], [0:10, 2^(0:2:20)])
Plots the odd and even powers of 2 at different x-values.
plot(0:0.01:2*pi, [sin(0:0.01:2*pi), cos(0:0.01:2*pi), 0:0.01:2*pi])
Plots the values of a sin, cos and linear function with x-values from 0 to 2 Pi.
Performs the plot of a matrix. The first column is interpreted as x-values if it has only one column. In this case the columns of the other matrices are interpreted as a collection of y-values. Otherwise all matrices are viewed as a collection of y-values corresponding to a set of x-values.
Argument m
Matrix
Argument n
Matrix
Argument l
Arguments
Returns 1. entry
Plot2D
plot(0:15, 2^1:16, 3^1:16)
Plots the powers of 2 from 1 to 16 and the powers of 3 from 1 to 16 at x = 0, 1, ..., 15.
plot([1:11, 2^(1:2:21)], [0:10, 2^(0:2:20)], [-10:0, 2^(-20:2:0)])
Plots the odd, even and negative powers of 2 at different x-values.
plot(0:0.01:2*pi, [sin(0:0.01:2*pi), cos(0:0.01:2*pi), 0:0.01:2*pi], [sinh(0:0.01:2*pi), cosh(0:0.01:2*pi)])
Plots the values of a sin, cos, linear, cosh and sinh function with x-values from 0 to 2 Pi.