MATLAB: How to Converting sine wave to a square wave in stateflow without invoking simulink function

functionstateflow

i tried using the formula square(t) = sgn(sin(2πt)), but it how can the time period calculated by stateflow. and if we invoke simulink fn what has to be done?
thanks in advance

Best Answer

Even though it is not clear what you want to do, I have attached image to describe how you can work with Simulink function.
Related Question