[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Editing .txt file in Octave

From: socware
Subject: RE: Editing .txt file in Octave
Date: Thu, 18 Mar 2010 01:52:42 -0700 (PDT)

I am in Windows XP (Home) and using Octave 3.2.4 over cygwin.

My file looks like this

30m              399.14n         
31m              412.216n        
32m              425.291n        
33m              438.367n        
34m              451.442n        

There are two columns. I want to use the values from both the columns as 
range of x and y respectively in a for loop.

My problem is first I need to change the format from 30m to .00030 or to
some other format like 30e-3
Secondly each column have more than 1000 values and I want to use all of
them and also if possible specify to use for instance the first 500 values
or values in between too.

Thank you for the feedback and help.

dastew wrote:
> I don't quit understand your data file structure. Could you send us about
> 5 lines if your data file?
> Are you in Widows or Linux?
> What version of Octave are you using.
> We will be glad to help you.
> Doug
>> Date: Wed, 17 Mar 2010 14:53:34 -0700
>> From: address@hidden
>> To: address@hidden
>> Subject: Editing .txt file in Octave
>> Hello All,
>> I just started using octave some days ago.
>> I have text file with 2 columns with more than 1000 coordinates from a
>> plot.
>> I want to change the column values which are like 1m,2m,...... (m stands
>> for
>> milli) and the second column have values as 3.212u (u for micro )
>> And then I want to use the two column values in a for loop something
>> like:
>> x= value of first column from text file
>> and y= value of second column from text file.
>> How can I perform these task? Would highly appreciate someone's feedback
>> and
>> help.
>> Thanks
>> -- 
>> View this message in context:
>> Sent from the Octave - General mailing list archive at
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
> _______________________________________________
> Help-octave mailing list
> address@hidden

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]