|
From: | Doug Stewart |
Subject: | Re: declare global as matrix...problem to use it |
Date: | Tue, 3 Jul 2018 11:04:28 -0400 |
hi doug,
i try it :
Main.m:
global a;
a=[1 12 30;3 5 50;6 3 2]
*******************
function ret = eserciziGlobal_Funzioni(x)
global a;
ret=a;
endfunction
*****************
Here..i call function:
>> eserciziGlobal_Funzioni(3)
i receive the error:
error: 'a' undefined near line 6 column 8
error: called from
eserciziGlobal_Funzioni at line 6 column 7
[Prev in Thread] | Current Thread | [Next in Thread] |