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.

Byte and Bit definition in MATLAB

Status
Not open for further replies.

shahbaz.ele

Advanced Member level 1
Advanced Member level 1
Joined
Aug 12, 2008
Messages
454
Helped
72
Reputation
146
Reaction score
73
Trophy points
1,308
Location
Islamabad, Pakistan
Activity points
3,669
Dear all I want to make a byte in MATLAB, Bits of the byte are set to 1 or 0 on specific process, then send it through serial port to other device.
I found no method of defining byte and bits in MATLAB.
Can anyone help ?
Thanks in Advance
 

as i remember matlab have serial port functions too. it is like 'serial', 'fopen', 'fclose' ... research these func. it would be help to you.
 

Problem in Serial is that we have to send the no as char etc like '11001100'.
I want to deal these bits separately and then transmit as One Byte.
Like B = Byte value;
b1 b2 ...b8 are bits, which are set and reset against some conditions.
Then Byte B = [b1 b2 ... b8] send at serial
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top