Re: Questions regarding Octave
- From: "Martin Blume" <mblume@xxxxxxxxxxx>
- Date: Mon, 24 Mar 2008 22:12:20 +0100
"Eric Jacobsen" schrieb
Well, if you see a multiple-lines file as a multiple-lines
Well, I tried that and resaving it with either Wordpad
or [Notepad] didn't make any difference.
file in Notepad, then it isn't this problem of CR/LF (DOS)
and CR (Unix) line-ends.
You probably ported between FAT (case-insensitive) and NTFS
HOWEVER, somewhere along the way of porting all this crap
across numerous machines (all Windows-based, btw), the
filename and extension became all caps, i.e., BUTTGEN.M.
So I renamed the file to buttgen.m and PRESTO!
It works. Jeebuz.
(case-sensitive, at least on the file-system level, the CMD shell
seems to ignore that).
Well, for MATLAB and Octave, a function foo is undefined,
Quick follow-up: The problem appears to be two-fold: the
extension needs to be lower case, and the file name is
case-sensitive. Even if the extension is lower case if
the filename is typed in wrong, e.g., if it's mixed-case
and you get one letter wrong, it's wrong.
The irritating thing is that this results in the bizarre
"undefined near line xx column yy" error rather than,
"can't find that file" or something actually useful.
so that's why it yells "undefined 'foo' near line ...".
foo could be in the file you're executing right now or
in its own file foo.m. Not being defined, Octave has no
way to know where it might be.
So, does it really find the file and just not interpretIn that case you'd get an error saying "bar" undefined in "foo.m"
it correctly, which is a little odd,
near line xx column yy.
or is it just making stuff up? ;)I don't think so. But I think MATLAB does the same in such a
situation.
Or you'll just have to get used to it. In any case, you can export
Strange and unhelpful in any case, but I've now got all sorts
of files running doing useful things. It does appear that
the plotting functions are a bit to get used to and may have
lost some functionality from the last version of Matlab
that I was used to, but I need to get into that a bit further.
the data to a separate file and plot them directly with Gnuplot,
where you'll have access to the usual figure-handling routines.
The plot window disciplineHuh? Works as expected here (with the exception that I haven't found
seems a bit off as well, since it'll intrude into a Remote Desktop
window and that's very unusual and I'd consider it a bug.
out how to zoom in/out on a plot window).
Regards
Martin
.
- Follow-Ups:
- Re: Questions regarding Octave
- From: Eric Jacobsen
- Re: Questions regarding Octave
- References:
- Questions regarding Octave
- From: Eric Jacobsen
- Re: Questions regarding Octave
- From: robert bristow-johnson
- Re: Questions regarding Octave
- From: bharat pathak
- Re: Questions regarding Octave
- From: bharat pathak
- Re: Questions regarding Octave
- From: Eric Jacobsen
- Re: Questions regarding Octave
- From: Martin Blume
- Re: Questions regarding Octave
- From: Eric Jacobsen
- Re: Questions regarding Octave
- From: Eric Jacobsen
- Questions regarding Octave
- Prev by Date: Re: Questions regarding Octave
- Next by Date: Re: Sampling Rate
- Previous by thread: Re: Questions regarding Octave
- Next by thread: Re: Questions regarding Octave
- Index(es):
Relevant Pages
|