Cosenoidal con varias fases en Matlab.

Graficar en Matlab la señal z\left( t \right) = 8\cos \left( {2\pi t + \theta } \right) para valores de \theta  = \left[ { - {\pi  \over 2}, - \pi , - {{3\pi } \over 2}} \right] en el intervalo 0 \le t \le 8 .
  1. t=-1:1/100:1;
  2. cc=['r','g','b'];
  3. w0=2*pi;
  4. desv_tmp=zeros(1,3);
  5. for k=1:3
  6. theta=[-pi/2,-pi,-1.5*pi];
  7. desv_tmp(k)=theta(k)/w0;
  8. z=8*cos(2*pi*t + theta(k));
  9. plot(t,z,'LineWidth',2,'Color',cc(k))
  10. hold on
  11. grid on
  12. end
  13. hold off

Gráfica del seno y coseno con la identidad de Euler en Matlab.

Graficar en Matlab las siguientes señales:
x\left( t \right) = {e^{j4\pi t}} + {e^{ - j4\pi t}}
y\left( t \right) = {{\left( {{e^{j4\pi t}} - {e^{ - j4\pi t}}} \right)} \over j}
  1. t=-1:1/100:1;
  2. s1=2*cos(4*pi*t);
  3. s2=2*sin(4*pi*t);
  4. subplot(2,1,1)
  5. plot(t,s1,'LineWidth',2),grid on
  6. subplot(2,1,2)
  7. plot(t,s2,'LineWidth',2),grid on
Related Posts Plugin for WordPress, Blogger...