[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about script file
From: |
Andrass Ziska Davidsen |
Subject: |
Re: about script file |
Date: |
Tue, 8 Apr 2003 15:38:41 +0200 |
User-agent: |
KMail/1.4.3 |
On Tuesday 08 April 2003 15:10, myong wrote:
> I write a script file that name is "function.m", I want to use
> "source()" command to execute function.m file.
>
> so, I use command: source(function.m)
>
> but error occur: "parse error:"
Try to enclose the name in quotes: source("function.m")
By the way; it is not necessary to use source in this case, just use function
(without the .m end). Source is meant to execute scripts that do NOT have the
.m end.
--
Andrass Ziska Davidsen
address@hidden
DTU-stud.no.: c9603343
-------------------------------------------------------------
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
-------------------------------------------------------------
- about script file, myong, 2003/04/08
- Re: about script file,
Andrass Ziska Davidsen <=