Z
zipls
suppose a simple matlab function
//add.m
function result=add(left,right)
result=left + right;
//end of add.m
use matlab comtool to encapsulate the function in fun.dll
and then use it in c#.net
i create a c# web service project to call
the matlab function add
but the function declaration has changed:
//create a instance;
fun.funClass st=new fun.funClass();
when i want to write st.add(parameters)
the declaration is
void add(int nargout,ref object,object,object)
which in matlab there're only two (left and right)
Could anyone please tell what's the meaning of int nargout and ref object?
And how to call the function add correctly?
//add.m
function result=add(left,right)
result=left + right;
//end of add.m
use matlab comtool to encapsulate the function in fun.dll
and then use it in c#.net
i create a c# web service project to call
the matlab function add
but the function declaration has changed:
//create a instance;
fun.funClass st=new fun.funClass();
when i want to write st.add(parameters)
the declaration is
void add(int nargout,ref object,object,object)
which in matlab there're only two (left and right)
Could anyone please tell what's the meaning of int nargout and ref object?
And how to call the function add correctly?