help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave > trying to run external scripts


From: Joanna Cheng
Subject: Re: Octave > trying to run external scripts
Date: Mon, 26 Dec 2011 11:22:02 +1100

On Mon, Dec 26, 2011 at 11:12 AM, amos martin <address@hidden> wrote:
Hello

I am trying to run an external file in Octave and am getting errors.Below are the following steps I am taking.

(1)Create a file and place it at C:\temp\Example1.
(2)Run the command source("c:\\temp\\TestProg1.m")
(3)Get the error message "error : no such file 'c:\temp\TestProg1.m'" and "error: sourcing file'c:\temp\TestProg1.m' "

In addition to Doug's suggestion, you can also use "cd" (change directory) to move directories so you don't have to store all your files in the octave binaries directory.

Anyway, your file is in C:\temp\Example1
You should be calling source("C:\\temp\\Example1\\TestProg1.m")

Kind regards,
Joanna



reply via email to

[Prev in Thread] Current Thread [Next in Thread]