0
MODULUS in XCOS

Hi,

Can someone help me with modulus Math function. In Simulink using Math Function --> Mod, one can calculate Modulus of two inputs. How to do the same in Xcos (Scilab). Please advise.

Thank you

Raghu


Scilab 20-03-19, 1:54 p.m. raghu7862

Answers:

0

In scilab, you can use the modulo or the pmodulo function. E.g.:

-->modulo(7,5)
 ans  =
    2.  
 
-->modulo([7,-7,1.2],5)
 ans  =
    2.  - 2.    1.2  
 
-->pmodulo([7,-7,1.2],5)
 ans  =
    2.    3.    1.2  

13-08-19, 10:28 a.m. sunilshetye

Yeah, that's what I thought, too. Thanks for answering! 


05-09-19, 12:27 p.m. kaypowers

Login to add comment


Log-in to answer to this question.