I am given this:
sampFreq = 15000; % sampling frequency, this value should be over twice the largest frequency comp, of signals
T = 1/sampFreq;t = 0:T:2; % sampling time
%st variables
a_s = 1; % amplitude
f_s = 60; % frequency
ph_s = pi; % phase angle
c_s = 1; % constant off set
st = my_sin(t,a_s,f_s,ph_s,c_s);figure(1);clfsubplot(2,1,1);plot(t,st,'b');xlabel('Time (sec)');ylabel('Amplitude');title('Data Signal')xlim([min(t),max(t)]);ylim([min(st),max(st)])adjfig();
– Do i need to construct another signal using my_sin?
– How do i produce a square wave?
Thank you!
Best Answer