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

__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

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

05-09-19, 12:27 p.m.kaypowersLogin to add comment