Table Of Contents

bin_to_dec

Version:
    Last Modified: March 15, 2017

    Converts a binary number represented by a string to a decimal number.

    Syntax

    c = bin_to_dec(a)
    Legacy name: bin2dec

    Inputs

    a

    Binary string with digits 0 and 1. a is a string vector.

    Outputs

    c

    Decimal number equivalent to a. c is a double vector.

    A = '101111011'
    C = bin_to_dec(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics