[Scilab-users] SciLab euivalent of Perl's map() function?

scilab.20.browseruk at xoxy.net scilab.20.browseruk at xoxy.net
Sat Apr 8 04:47:18 CEST 2017


Hi,

I want to do the equivalent of 

    plot( xdata, xdata .^ 2, xdata .^ 3, xdata '^ 4, ... );

and benefit from the plot() color rotation, without having to repeat the equation.

In Perl I might do (something like):

    plot( xdata, map xdata .^ $_, 2 .. 5 );

Something like that in SciLab?







More information about the users mailing list