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
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

This can be a great solution, I appreciate those who share beautifully like you, thank you.

basketball legends fun

 


08-09-20, 12:12 p.m. franciscomwatson

Login to add comment


0
Thanks for the information your article brings. I see the novelty of your writing, I will share it for everyone to read. I look forward to reading more articles from you. mapquest directions
Oops! Looks like spam! Waiting for moderator approval.
17-10-20, 9:42 a.m. minion89

Login to add comment
Oops! Looks like spam! Waiting for moderator approval


Log-in to answer to this question.