Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Binary array in matlab

Status
Not open for further replies.

digital design

Junior Member level 2
Joined
Oct 27, 2012
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,446
Hi every body
I have a binary string that I want to convert it to decimal in matlab. How can I do this? How can I define for matlab that numbers of string are binary?
when I define las follow, numbers are seem decimal
str=[111101011011
001010100001
101011110001
001100000111
100110011111
000010101001
110101001001
001000110011]
str =

1.0e+011 *

1.1110
0.0101
1.0101
0.0110
1.0011
0.0001
1.1010
0.0100
 

str=bin2dec(["111101011011" ; "001010100001" ... ]);
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top