help-octave
[Top][All Lists]
Advanced

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

Re: Need Help Loading Functions


From: James Sherman Jr.
Subject: Re: Need Help Loading Functions
Date: Thu, 30 Aug 2012 09:41:11 -0400

On Wed, Aug 29, 2012 at 7:43 PM, adi89 <address@hidden> wrote:
Hi guys,

I just started using Octave recently.


I made a text file with

"function [y1,y2]= squareAndCubeThisNumber(x)

y1= x^2;
y2=x^3;"

And that's it in a txt file saved as "squareAnd CubeThisNumber.m"

I saved it to a folder, which is the directory recognized by Octave when i
type pwd.

C:\Users\etc.

when I try to call upon the function, Octave says it's undefined, yet the
file in in the appropriate folder.

I'm getting frustrated, because I thought Octave recognizes these files in
the corresponding directory. I'm not sure what's wrong.. Would appreciate
some input.

Thanks.




--
View this message in context: http://octave.1599824.n4.nabble.com/Need-Help-Loading-Functions-tp4643486.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave

That should be how it works.  Though I just want to make sure that there is no space in your filename (my guess is that it is you just made a typo when writing the email).  Also, just to try and cover all the bases, double (and triple) check that there is no typos in your spelling of the file or function name.  I've done this on too many occasions to count.

Hope this helps,

James Sherman

reply via email to

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