Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.

semilogy

Florian Rappl edited this page Dec 21, 2014 · 2 revisions

semilogy

Creates a linear-log representation of plotting data.

semilogy(m)

Performs the linear-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

Example

semilogy(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 linear-log plot.

Example

semilogy([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 linear-log plot.

Example

semilogy([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 linear-log plot.

semilogy(m,n)

Performs the linear-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

Example

semilogy(0:15, 2^1:16)

Plots the powers of 2 with y = 2, 4, 8, ..., 65536 at x = 0, 1, ..., 15 in a linear-log plot.

Example

semilogy([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 linear-log plot.

Example

semilogy(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 linear-log plot.

Clone this wiki locally