Hello Stéphane,

Just to be sure, you want that we fill the X-list with all outputs of ngdrid.
Following witch information, size(X) or size(outputs) ?
In your cas I suppose that the size is the same.
What append if X is not a list or does not have the good size ?

Some functions that returns multiple arguments, "look" how many as expected by caller
a = size(x) vs [a,b] = size(x) for example.
Does we must provide size(X) to ngrid ?

Just a question, specific to ndgrid, why do not update the function to return a list in case of nargout == 1 ?

Regards,
Antoine
Le 23/04/2019 à 22:14, Stéphane Mottelet a écrit :
Hello all,

After seeing this question on stackoverflow

https://stackoverflow.com/questions/55757856/ndgrid-input-and-output-from-cell-array

I realized that the current features of Scilab are quite asymmetric w.r.t. the use of an "expanded" list as input, which is supported, as in

x = list(1:2,1:2,1:2)
ndgrid(x(:))

and as output, which is not supported, as in

X = list(,,)
X(:) = ndgrid(x(:))

Would it be complicated to implement the above ?

S.

_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to