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: Simple read of text file into Matlab
Replies: 1   Last Post: Mar 5, 2013 9:10 AM

Advanced Search

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

Posts: 9,850
Registered: 6/7/07
Re: Simple read of text file into Matlab
Posted: Mar 5, 2013 9:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 3/5/2013 5:32 AM, Jean wrote:
> Hello. I have a question which is probably very basic but I have been
> struggling with for a bit. I have a text file, mostly with small
> exponential numbers, formatted something like this:
> Time/s, i1/A, i2/A, i3/A, i4/A, i5/A, i6/A, i7/A, i8/A
> 1.000e-1 9.980e-6 1.894e-6 4.907e-7 2.109e-6 2.906e-6 1.100e-6 3.335e-7
> 1.625e-6
> 2.000e-1 9.980e-6 1.289e-6 4.032e-7 1.299e-6 1.873e-6 8.481e-7 2.846e-7
> 1.102e-6


> with the time as the first column, each 'i/A' value is another column so
> there are 9 columns. the columns are very long. I want to import these
> into Matlab to graph and further manipulate for some calibration etc
> later. I have tried textscan, fileID commands for opening and extracting
> etc but can't seem to capture the exponential values correctly. Can
> someone help? Using a Mac OS.

Shouldn't be any problem at what you tried and the results...


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.