Kayıtlar

mathlab sinyal etiketine sahip yayınlar gösteriliyor

MATLAB EXAMPLES 1 / HABERLESME TEMELLERİ

Resim
  Draw periodic signal matlab codes ; clear all close all clc t = -2:0.005:2;  %time vector A1=10;%amplitude x1 = A1*cos(5*pi*t);                   % 1st periodic signal plot(t,x1,'r-','linewidth',2); legend('x1=10cos(5*pi*t)') grid on % A = 2;                              % Define the amplitude % w = pi;                             % Define the frequency in Hertz % theta = pi/6;                       % Define phase shift % t = -1:0.01:5;                      % Define the time vector % x = A * sin(w * t + theta);         % Compute y(t), the sine wave % plot(t,x)                       ...

MATLAB EXAMPLES 3 / HABERLESME TEMELLERİ

Resim
  first part of the matlab codes ;(test_v1) clear all; close all; clc; N_vec=[5 10 20 100]; [xa1 fa1]=FS_sq(N_vec(1)); [xa2 fa2]=FS_sq(N_vec(2)); [xa3 fa3]=FS_sq(N_vec(3)); [xa4 fa4]=FS_sq(N_vec(4)); figure(1); subplot(2,2,1); plot(xa1,fa1); xlabel('\bfx'); ylabel('\bff(x)'); title(['\bfFourier Series: ' int2str(N_vec(1)) ' terms']); grid on; hold on; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subplot(2,2,2); plot(xa2,fa2); xlabel('\bfx'); ylabel('\bff(x)'); title(['\bfFourier Series: ' int2str(N_vec(2)) ' terms']); grid on; hold on; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subplot(2,2,3); plot(xa3,fa3); xlabel('\bfx'); ylabel('\bff(x)'); title(['\bfFourier Series: ' int2str(N_vec(3)) ' terms']); grid on; hold on; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subplot(2,2,4); plot(xa4,fa4); xlabel('\bfx'); ylabel('\bff(x)'); title(['\bf...