Hello, I have a function defined as such
function varargout= callOct(fname,varargin) varargout=list(callOctave(fname,varargin)) endfunction When I call this function with [c,d]=callOct("butter",8,0.1), I get the error !--error 21 Invalid index. If I call the function as c=callOct("butter",8,0.1), I get no error. varargout stores only one o/p argument even though callOctave returns two arguments. If I remove varargout like this function [b,a]=callOct(fname,varargin) [b,a]=callOctave(fname,varargin) endfunction Now when I call this function with [c,d]=callOct("butter",8,0.1), I get no error. I need callOct function to work with any number of output arguments and so I need to use varargout. How do I get the function to work with varargout? Regards, Shamika
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users