The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: serial communication with hex strings
Replies: 6   Last Post: Dec 28, 2012 11:31 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2
Registered: 2/23/09
Re: serial communication with hex strings
Posted: Apr 1, 2009 10:52 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all:
I solved the problem by converting the hex to decimal using the hex2dec command in matlab. For example, something like
E9 00 1F .. was fed in as
[233 0 215] (these are not the exact values but you get the idea)
so for example
start=[233 0 215]
start is fed in the vector format not as a string.
Hope this helps.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.