How generate even time function on MATLAB

2 views (last 30 days)
Use sinusoidal harmonics to synthesise and plot waveforms of the 10 kHz periodic square, triangular, and sinc signals with a peak amplitude of 1 in MATLAB. Assuming that the periodic signals are all even functions of time, plot the waveforms over the time duration from − 0.1 ms to 0.1 ms. Include your MATLAB codes in a single m-file.

Answers (1)

Walter Roberson
Walter Roberson on 19 Aug 2015
An even function means f(-x) = f(x), so the signals are symmetric around the t = 0 axis.
There is no one way to write an even function in MATLAB. As your function is periodic, you can use any function that is symmetric in shape and starts at 0, or you can use an function that is symmetric in shape and 0 is "half way through".
An example of something that would not be "even" would be a ramp wave or sawtooth wave:
because no matter where you place your t = 0 in the wave, the ramp at -x is going to be different than the ramp at x.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!