![]() ![]() ![]() Tpts = (4.0e-3/5.0e-5) + 1 % Total points " (final point-initial point)/Interval+1%įor n = 1: 12 % Values we are considering to approximate Fourier Seires instead of infinity as given in original function x(t)įor m = 1: tpts % Here, we'll consider all " t" points to cover " from 0 to 4ms interval" % Fourier Series Expansion for Square Waveĭt = 5.0e-05 % Interval between teo time steps Now, we will write a Matlab code for g(t) between 0 and 4ms with an interval of 0.05 ms to demonstrate that g(t) is a decent approximation of original function x(t). Let’s assume we have a square wave with following characteristics:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |