convert binary vector value into decimal

i have
a= [0 0 1 0 1 0 1 1]
i want to convert it, into decimal value 43

Asked:

on 26 Feb 2014

Answered:

on 26 Feb 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!