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: Doug Stewart
Subject: Re: Octave > trying to run external scripts
Date: Sun, 25 Dec 2011 19:18:20 -0500

When you are running octave type in the command
pwd      

(pwd is present working directory)

It will tell you where it is expecting the files.
If you put your files there then all you have to type is the file name, not the path.


Try this.
Doug


On Sun, Dec 25, 2011 at 7:12 PM, 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' "

the program I wrote contains
##
clear all;
a=3;
b=5;
c=a+5;
disp c;

Amos

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave




--
DAS

https://linuxcounter.net/user/206392.html

reply via email to

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