Guest User

Untitled

a guest
Jul 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Is that right :
  2.  
  3. close all, clear all
  4. Fx = 20; Tx=1/Fx; % Original sampling frequency in Hz
  5. tx = 0:Tx:1; % Time vector tx
  6. x = 0.9*sin(2*pi*tx); % Input sequence
  7. y = resample(x,2,1); % Re-sampling
  8. ty = (0:(length(y)-1))*1*Tx/2; % New time vector ty
Add Comment
Please, Sign In to add comment