t = (0:0.01:20)';
step1 = ( t >= 0 );
step2 = ( t >= 2 );
step3 = step1 - step2;
plot(t,[step3])
t = (-1:0.01:1)';
impulse = t==0;
unitstep = t>=0;
ramp = t.*unitstep;
quad = t.^2.*unitstep;
sqwave = 0.81.*square(4*pi*t);
plot(t,[impulse unitstep ramp quad sqwave])
t = (0:0.001:2)';
sinw = sin(2.*pi.*10.*t);
cosw = cos(2.*pi.*20.*t);
figure;
plot(t,sinw)
xlabel('time (in seconds)');
ylabel('sin wave');
title('Signal versus Time');
zoom xon;
plot(t,sinw)
figure;
plot(t,cosw)
xlabel('time (in seconds)');
ylabel('cos wave');
title('Signal versus Time');
zoom xon;
plot(t,cosw)
t = (0:0.01:20)';
step1 = ( ( 0 <= t & t <= 3).* t);
step2 = ( (3 < t & t < 6).* (t-1) );
step3 = step1 + step2;
plot(t,[step3])
t = (0:0.01:20)';
step1 = ( t >= 0 );
step2 = ( t >= 2 );
step3 = step1 - step2;
plot(t,[step3])
t = (-5:0.001:5);
sig = 0.5;
fx = 1;
eds = expdampsinu(sig,fx,t);
plot(t, eds);
function eds=expdampsinu(sig, fx, t)
eds = exp((-1) * sig * t).* sin(2 * pi * fx *t);
end
t = (-3:0.001:4)';
step1 = ((-3 <= t & t <= -1).* exp((-1).* 0.5.* t)) + ((-1 < t & t <= 0).*
((-3).*t + 1)) + ((0 < t & t <= 2)) + ((2 < t & t <= 4).* exp(0.5 * t).* sin(5
* pi * t));
plot(t,[step1]);a
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com