Hello, > De la part de animeshbaranawal > Envoyé : dimanche 10 janvier 2016 16:53 > > I have a function which has variable output arguments (using varargout). > Now, I want to access the nth output argument of the function > [...] > Is there a method in scilab to do this?
Reading the help page https://help.scilab.org/docs/5.5.2/en_US/varargout.html It seems that vararg should *not* the only parameter. Then varargout is considered as a whole list in a single variable. E.g. function [n, varargout] = foo() varargout = list(1, 2, 3, 4); n = argn(1); endfunction [N, L] = foo() Disp(L) Hope this helps regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users