Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simulink Help

  1. Oct 5, 2014 #1
    Dear all, I am pretty bad at Simulink and I want to draw out a half wave sinusoid with the equation:
    I(t)=360sin(pi*t/0.4), 0<=t<=0.4
    I(t)= 0 , 0.4<t<=1

    Any help or suggestions?
    I've tried using the Sine block with amp=360 and freq=7.85 but the graph looks weird.
    I want to get the graph in blue but only managed to get the one in yellow.
    Last edited: Oct 5, 2014
  2. jcsd
  3. Oct 7, 2014 #2


    User Avatar
    Science Advisor

    You're not using enough points to generate the sine. Reduce the time step.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook