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

logspace

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

logspace

Returns a logarithmically increased vector.

logspace(start,end,count)

Creates a vector with count elements ranging from a certain value to a certain value for the basis 10.

Argument start

Scalar

Argument end

Scalar

Argument count

Scalar

Returns 1. entry

Matrix

Example

logspace(2, 3, 5)

Creates the vector [100, 177, 316, 562, 1000], i.e. start at 10^2 and end at 10^3 with number of elements 5.

logspace(start,end,count,basis)

Creates a vector with count elements ranging from a certain value to a certain value for an arbitrary basis.

Argument start

Scalar

Argument end

Scalar

Argument count

Scalar

Argument basis

Scalar

Returns 1. entry

Matrix

Example

logspace(2, 6, 5, 2)

Creates the vector [4, 8, 16, 32, 64], i.e. start at 2^2 and end at 2^6 with number of elements 5.

Clone this wiki locally