[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: feed contents from a text file to octave promt ?

**From**: |
Heber Farnsworth |

**Subject**: |
Re: feed contents from a text file to octave promt ? |

**Date**: |
10 Sep 2002 17:35:55 -0500 |

If the data is nicely set up in rows and columns you should be able to
type
load fn.dat
where fn.dat is the name of the file. This will create a matrix called
fn in your workspace.
Heber
On Tue, 2002-09-10 at 17:24, john greene wrote:
>* how to input contents from a file at the octave prompt ?*
>* *
>* i have a matrix like 20x20 and have it written in a text file.*
>* how do i input the contents of this file / enter at the "octave*
>* prompt" ?*
>* *
>* (because it would be cumbersome to input a matrix of 20 by 20*
>* size at the octave prompt.)*
>* *
>* __________________________________________________*
>* Yahoo! - We Remember*
>* 9-11: A tribute to the more than 3,000 lives lost*
>* http://dir.remember.yahoo.com/tribute*
>* *
>* *
>* *
>* -------------------------------------------------------------*
>* Octave is freely available under the terms of the GNU GPL.*
>* *
>* Octave's home on the web: http://www.octave.org*
>* How to fund new projects: http://www.octave.org/funding.html*
>* Subscription information: http://www.octave.org/archive.html*
>* -------------------------------------------------------------*
>* *
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------