[Scilab-users] How to let scilab do what matlab can do?

sgougeon at free.fr sgougeon at free.fr
Mon Sep 10 18:33:35 CEST 2012


Hello,

>.../...
>But I have found some function that can be used in matlab can’t be used in scilab, like “rectpulse()”

recpulse(x,n)
// can be done with

x.*.ones(n,1)

// Example:

-->x=grand(3,2,'uin',0,20)
 x  =
    2.     15.  
    18.    3.   
    20.    7.   
 
-->x.*.ones(4,1)
 ans  = 
    2.     15.  
    2.     15.  
    2.     15.  
    2.     15.  
    18.    3.   
    18.    3.   
    18.    3.   
    18.    3.   
    20.    7.   
    20.    7.   
    20.    7.   
    20.    7.   
 

>”factor()”. 
?
Same with Scilab:
help.scilab.org/docs/current/en_US/factor.html

Regards
Samuel



More information about the users mailing list