Byte and Bit definition in MATLAB

Status
Not open for further replies.

shahbaz.ele

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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…