loading script file (function) in octave

Ben Abbott bpabbott at mac.com
Fri Jun 6 16:08:07 CDT 2008


On Jun 6, 2008, at 3:55 PM, Siddhartha wrote:

> Hey guys, you probably have gotten... well a bunch of emails
> from me already.
>
> But i'm trying to load a script file called xdot.m, and I
> have the first line commented out...yet still it gives me
> the message:
>
> octave-3.0.1:29> xdot
> warning: function name `f' does not agree with function file
> name `/Users/chemistry/xdot.m'
> error: `x' undefined near line 9 column 17
> error: evaluating binary operator `*' near line 9, column 16
> error: evaluating binary operator `-' near line 9, column 14
> error: evaluating binary operator `+' near line 9, column 22
> error: evaluating assignment expression near line 9, column
> 9
> error: called from `xdot' in file `/Users/chemistry/xdot.m'
>
> can anyone tell me how to fix this?

Can you show us the first 9 lines of your xdot.m?

Ben


More information about the Help-octave mailing list