# bin_to_dec

Version:

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

## Syntax

c = bin_to_dec(a)
Legacy name: bin2dec

## a

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

## 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