<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
It may not solve your problem, but in Scilab 6 you can at least
access the nth element of the first output argument.<br>
<br>
--> function c=a(b)<br>
> c(1)=b<small> </small><br>
> c(2)=b^2<br>
> c(3)= b^3<br>
> endfunction<br>
<br>
--> a(2)(2)<br>
ans = 4.<br>
<br>
Another solution could be like it is done in size(), where an extra
input argument can be used to point at the correct output argument:<br>
<br>
d = <br>
1. 2. 3.<br>
4. 5. 6.<br>
--> size(d)<br>
ans = 2. 3.<br>
--> size(d,1)<br>
ans = 2.<br>
--> size(d,2)<br>
ans = 3.<br>
<br>
JĹ<br>
<br>
<div class="moz-cite-prefix">On 10.01.2016 16:52, animeshbaranawal
wrote:<br>
</div>
<blockquote cite="mid:1452441173961-4033257.post@n3.nabble.com"
type="cite">
<pre wrap="">I have a function which has variable output arguments (using varargout). Now,
I want to access the nth output argument of the function. It is assured that
the function generates more than n output arguments.
Is there a method in scilab to do this?
Animesh
</pre>
</blockquote>
<br>
</body>
</html>