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: freadi help
Replies: 2   Last Post: Jan 28, 2013 10:10 AM

Advanced Search

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

Posts: 8,250
Registered: 6/7/07
Re: freadi help
Posted: Jan 28, 2013 9:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/28/2013 5:19 AM, AUC wrote:
> I'm reading data from accelerometer connected to arduino. if i plot the
> data in the arduino i'm getting the right data. but when i try to see
> the data with the function fread(s)
> i'm getting this vector of numbers (this is just a part of the vector) :


> 56 48 13 10 57 50 56 13 10 56 56 52 13 10 57

> the question is why do i get that numbers? it dosent match to the data
> that i get in the arduino.

....

That's the decimal representation of an ASCII hex string--look at the
ASCII table-- the '13 10' substring is CR/LF pair, the digits 0-9 are
30-39 hex == 48-57 decimal. The above string would be

.80 LF 928 LF 884 LF 9..

--



Date Subject Author
1/28/13
Read Re: freadi help
dpb
1/28/13
Read Re: freadi help
Steven Lord

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.