help-octave
[Top][All Lists]
Advanced

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

RE: beginner in octave-few queries


From: dastew
Subject: RE: beginner in octave-few queries
Date: Sun, 11 Oct 2009 11:31:03 +0000

did you save it as
page42_sample
or
page42_sample.m

all octave scripts and functions end with   .m

Doug


From: address@hidden
To: address@hidden
Date: Sun, 11 Oct 2009 10:26:49 +0200
Subject: beginner in octave-few queries

Hi,

 

I am just starting using octave and currently using octave windows xp version.

 

My problem is very basic, I am trying to run some simple demo program saved as scripts from octave prompt windows and they fail to run.

 

My Ocatve Prompt looks like

 

octave-3.2.2.exe:27:F:\Octave\3.2.2_gcc-4.3.0\bin

 

I have saved this program as a file’ page42_sample’ using notepad++

 

#! octave-interpreter-name -qf

# a sample Octave program

printf ("Hello, world!\n");

 

When I run the script I get following error either by typing ‘page42_sample’ OR octave ‘page42_sample’

 

> page42_sample

error: `page42_sample' undefined near line 27 column 1

octave-3.2.2.exe:27:F:\Octave\3.2.2_gcc-4.3.0\bin

I am doing some terrible mistake here, appreciate any help in this regards.

 

Thanks & Regards

 

Sachin

************************************************************************
Sachin Kumar Sharma

Lead Geomodeler- Mumbai High Full Field Review Project

Senior Reservoir Geophysicist , Consulting Services (DCS)
Schlumberger Asia Services Ltd.

                              "The urge to quit is the last obstacle between you and your dreams."

 


reply via email to

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