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: loading data on .txt file into matlab array
Replies: 1   Last Post: Mar 14, 2013 1:11 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
dpb

Posts: 8,153
Registered: 6/7/07
Re: loading data on .txt file into matlab array
Posted: Mar 14, 2013 1:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 3/14/2013 12:06 PM, Ravin wrote:
> Hi,
>
> I have a text file with data obtained from a sensor
>
> ACCEL-x ACCEL-y ACCEL-z MAG-x MAG-y MAG-z GYRO-x GYRO-y GYRO-z
> -3 -7 204 -76 1055 292 -4 5 40
> -4 -7 204 356 958 221 -5 6 39
> -4 -8 204 357 958 218 -2 5 40
> -6 -8 204 363 956 213 -3 7 40
> -1 -7 205 359 956 210 -6 5 39
>
> Could anyone help me with the code to load the integers onto an array so
> that I can process this data. I'm very new to MATLAB so I'm struggling :-P


doc textscan

Use the 'headerline',1 option

Or the interactive import tool

--




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.