[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to debug octave code?
From: |
Robert A. Macy |
Subject: |
Re: how to debug octave code? |
Date: |
Wed, 23 Aug 2006 09:31:05 -0700 |
I don't have any problem with either.
Except for a small thing. The first file loads a matrix
called x, the second loads a matrix called test2, which
contains the same values.
I usually load a text data file, thus...
>> load "test1.txt";
or..
>> load test1.txt
or, if the variable already exists...
>> load -force "test1.txt";
all produce the x variable matrix
also ...
>> load "test2.txt";
octave loads a matrix and calls it test2
What is the script you use to load the files?
- Robert -
On Tue, 22 Aug 2006 22:52:26 -0700
"frank wang" <address@hidden> wrote:
> Hi, Robert,
>
> Thanks for trying to help me.
>
> My problem is when I load a text file, octave does not
> load in the data. But
> in another machine, octave can load the same file. The
> only difference is
> the gcc compiler version 4.1.0 and 3.4.2. On gcc version
> 4.1.0, I even can
> not load a simple file containing only one data: 103.
>
> I tried to using octave to save the data ino a file and
> when I opened the
> file, I see some lines commented with #. I can load this
> file in octave, but
> matlab will complain. If I delete the line with #, then
> octave will load
> nothing without any error messages. When I typed whos -v,
> I did not see the
> variable.
>
> Attached are two files. The first one is saved with
> octave and the second
> one I deleted the lines starting with # to be compitble
> with matlab. The
> second file can be loaded by matlab.
>
> Please see whether you could help me to sove this
> problem.
>
> Thanks
>
> Frank
- how to debug octave code?, frank wang, 2006/08/18
- Re: how to debug octave code?, Robert A. Macy, 2006/08/18
- Re: how to debug octave code?, frank wang, 2006/08/22
- Re: how to debug octave code?, Robert A. Macy, 2006/08/22
- Re: how to debug octave code?, frank wang, 2006/08/23
- Re: how to debug octave code?, Dmitri A. Sergatskov, 2006/08/23
- Re: how to debug octave code?,
Robert A. Macy <=
- Re: how to debug octave code?, frank wang, 2006/08/23
- Re: how to debug octave code?, Quentin Spencer, 2006/08/23
- Re: how to debug octave code?, frank wang, 2006/08/23
- Re: how to debug octave code?, frank wang, 2006/08/24
- Re: how to debug octave code?, John W. Eaton, 2006/08/24
- Re: how to debug octave code?, frank wang, 2006/08/24
- Re: how to debug octave code?, John W. Eaton, 2006/08/24
- Re: how to debug octave code?, frank wang, 2006/08/24
- Re: how to debug octave code?, Joe Koski, 2006/08/24
- Re: how to debug octave code?, Joe Koski, 2006/08/23