-
Notifications
You must be signed in to change notification settings - Fork 9
loglog
Creates a log-log representation of plotting data.
Performs the log-log 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
loglog(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) in a log-log plot.
loglog([0:10, 2^(0:2:20)])
Plots the even powers of 2 with y = 1, 4, 16, ..., 2^20 at x = 0, 1, ..., 10 in a log-log plot.
loglog([0:10, 2^(0:2:20), 2^(1:2:21)])
Plots the even and odd powers of 2 at x = 0, 1, ..., 10 in a log-log plot.
Performs the log-log 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
loglog(0:15, 2^1:16)
Plots the powers of 2 with y = 2, 4, 8, ..., 65536 at x = 0, 1, ..., 15 in a log-log plot.
loglog([1:11, 2^(1:2:21)], [0:10, 2^(0:2:20)])
Plots the odd and even powers of 2 at different x-values in a log-log plot.
loglog(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 in a log-log plot.