Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
abdur.engineer@gmail.com

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]
fprintf(s1,start)
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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.