From: Walter Roberson on
Abbas wrote:

>
> Using Hyper Terminal comminucator (Windows XP) When I write 'R' to
> device I see infinite number of binaries until I write 'S' to the
> device. But, in MATLAB, when I run the code x will be a 5 by 1 matrix
> and count = 5 I do not know why I am seeing this

Like I suggested, code the flow control and start/stop bits explicitly.
Even if you are using the defaults, other people reading are not
necessarily going to know the defaults and so specifying the defaults is
better "self-documentation" (and could save you trouble if the defaults
change.)

> When I solve this problem, I should read bit by bit (the first 3 bits
> are the number of the channels and the other 13 are the data for a
> channel (Every 2 bytes)). Well, for now, I just want to have some
> infinite data, not a 5 by 1 matrix. I have played with most of the
> variables and no results. Do you what is wrong? Thanks.

If you change the precision to uint16 then you can use bitget() on the
resulting 16 bit words, with the MSB being bit #1.