How to add 0 values before and after a sine wave ?
Show older comments
Hi,
I have created a sine wave as follow:
Fs=2000;
t=0:1/Fs:1-1/Fs
f0=100;
y=sin(2*pi*f0*t)
Now, I would like to add 10 points with their value = 0 just before and after this sine wave. How could I do that ?
Thanks in advance!
2 Comments
Adam Danz
on 10 Jan 2019
Does that mean there will be 10 inserted points prior to the first value, then 20 inserted points between each cycle, and then 10 inserted points at the end?
Accepted Answer
More Answers (0)
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!