help-octave
[Top][All Lists]
Advanced

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

using scope variable in function


From: Huub van Niekerk
Subject: using scope variable in function
Date: Sun, 14 Jun 2009 17:37:18 +0200

Hi,

Using Octave 3.2.0 on MacOSX 10.5, I'm writing a function in which I want to use the variable Ascan that comes from a mat file I loaded:



function G = test1(n);
> s=Ascan(n,n+1);
> G=s;
> endfunction;
octave-3.2.0:10> test1(1)
error: `Ascan' undefined near line 2 column 3
error: called from:
error:   test1 at line 2, column 2


reply via email to

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