help-octave
[Top][All Lists]
Advanced

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

Re: Function Returning Answer Variable


From: Dmitri A. Sergatskov
Subject: Re: Function Returning Answer Variable
Date: Mon, 26 Nov 2012 15:58:14 -0600

When you call the function, you need to terminate it with a semicolon too.




On Mon, Nov 26, 2012 at 3:09 PM, Vesnog <address@hidden> wrote:
Okay I am trying to attach it once more. I thinks now it is attached and I
have already terminated everything with a semicolon.
cannon_function.m
<http://octave.1599824.n4.nabble.com/file/n4647232/cannon_function.m>


 When you call the function, you need to terminate it with a semicolon too.
octave:6> [a, b] = cannon_function(10, 1);
[Range = 0.002000 km, Theta_final = -10.125512 degrees]
octave:7> a
a =  0.0019997
octave:8> b
b = -10.126


Dmitri.
--


reply via email to

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