Discussion ClosedThis discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one,click here.
Making a periodic step function
Posted 2023年12月22日 GMT+1 21:35Version 6.12 Replies
Please login with a confirmed email address before reporting spam
Hi I know this question is already asked, but it seems there is a problem the way I am doing this. I appreciate any help, thanks. I want to simulate a second of pulsed laser with frequency of 10000. So in each second, there are 10000 of laser pulses. I have defined a "rectangle function" and made a step function with lower limit of 0 and upper limit of 15 ns which is the pulse duration. Afterward, I created an "Analytic function" and I defined the function as "rectanlge1(mod(t,1/10000))". I plot this function and the plot is not anything close to what it should be. it is not periodic at all, it is not repeating as it should be. I also enabled the periodic button, still nothing solved the problem.
Thank you