How to add zero points in a function
3 views (last 30 days)
Right now I have a function h = sin(2*pi*50*t) with 27 samples, and I want to add 500 zeros to the end of the 27-signal-long signal. How can I mke it?
fs = 250;
t = (0:1/fs:(0.108-.5/fs)); % [0, 0.108)
h = sin(2*pi*50*t);
L = 27;
f = fs*(0:L-1)/L;