3
/*****************************************
4
* Accessing the Scilab Stack
5
* 1- Accessing a Scilab Matrix (read and write)
7
*****************************************/
13
static int minlhs=1, minrhs=0, maxlhs=1, maxrhs=0;
17
CheckRhs(minrhs,maxrhs) ;
18
CheckLhs(minlhs,maxlhs) ;
21
* we want to acces scilab variable : param
22
* we can modify or read param with *stk(lp+k)
25
GetMatrixptr("param", &m, &n, &lp);
26
CreateVar(1, "d", &m, &n, &l1);
28
for (k = 0; k < m*n ; ++k)
30
(*stk(l1+k)) = (*stk(lp+k));