Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

log2 (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = log2(a)

Description

Computes the base 2 logarithm of the input elements. The base 2 logarithm of zero is -inf.

Examples

Inputs

Name Description
a Specifies a numeric scalar, vector, or matrix.

Outputs

Name Description
c Returns the base 2 logarithm of the elements in a. c returns complex numbers for negative or complex elements in a. c is a scalar, vector, or matrix of the same size as a.

Examples

A = [0.1, 1; 10, 100]
C = log2(A)

Related Topics

log


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit