help-octave
[Top][All Lists]
Advanced

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

Re: Writing functions


From: Juan Pablo Carbajal
Subject: Re: Writing functions
Date: Mon, 26 Oct 2015 11:21:17 +0100



On Mon, Oct 26, 2015 at 10:45 AM, Jonathan Camilleri <address@hidden> wrote:
Not really, I have no idea how to write a function and write it in the Octave command line or the editor.  The editor has a button which looks like it is going to compile but I have no idea how to test these functions, unfortunately, looks like I have to do more work.

On 26 October 2015 at 10:23, Juan Pablo Carbajal <address@hidden> wrote:


On Mon, Oct 26, 2015 at 8:33 AM, Jonathan Camilleri <address@hidden> wrote:
sqrt (x^2 + y^2) # One argument ones (n, m) # Two arguments rand () # No arguments

I cannot figure out how to write these functions in Octave, I keep getting syntax errors.

Regards,


--
Jonathan Camilleri

Mobile (MT): ++356 7982 7113
E-mail: address@hidden
Please consider your environmental responsibility before printing this e-mail.
 


_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave


What is exactly your problem?
Is this code not working for you?
sqrt(4)
ones(3,2)
rand()




--
Jonathan Camilleri

Mobile (MT): ++356 7982 7113
E-mail: address@hidden
Please consider your environmental responsibility before printing this e-mail.
 
I usually reply to emails within 2 business days.  If it's urgent, give me a call.

and, angel start-up investment opportunities available at http://slyth3.wix.com/jon-business.
Online resume is available online at http://mt.linkedin.com/in/jonathancamilleri and shared bookmarks at https://delicious.com/jon80.

Please keep the list in copy (replay to all!).

What version of Octave are you using? What OS?

You jst need to write the command in the command prompt. It is the place where you see this written: "octave:1>". Just type the commands there. for example: "ones(3,2)"
(all without quotes)


reply via email to

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