[Scilab-users] Dump the output of a function

Soulard, Christian (GE Power) christian.soulard at ge.com
Thu Jan 11 11:31:02 CET 2018


Hello,

What is the Scilab way to dump the output of a function ? The Matlab equivalent is tilde (~).

To give an example, suppose I have an existing function f such as :

function [y_1,y_2] = f(x)
                y_1 = x ^ 2;
                y_2 = x ^ 3;
enfunction

Suppose I want to use this function, but I am only interested in the y_2 result, and I don't want to assign a variable to the y_1 output. In Matlab, I would do the following way :

[~,b] = f(2)

I would only get a single output variable :

b = 8

Thank you for your feedback.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180111/46a2c31b/attachment.htm>


More information about the users mailing list