daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. f1=20;
  2. f2=100;
  3. df=f2-f1; % frequency
  4. dt=0.002; % sample rate
  5. T=4; % time
  6. handles.t=0:dt:T-dt;
  7. handles.s=sin(2.*pi.*handles.t.*(f1+(df/((T-dt)*2).*handles.t)));
  8.  
  9. handles.zero=ifft(handles.s);
  10.  handles.zero=angle(handles.zero);
  11.  
  12. figure
  13. plot(handles.t,handles.zero)
  14. title('Zero phase signal');
  15. xlabel('Time')
  16. ylabel('Amplitude')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top