I know that plotting a delta function is a bit confusing in MATLAB and a potential solution can be found using the following code:
x = -10 : 0.1 : 10;
y = double(x == 0);
plot(x, y);
What if I have a signal like: S(f) = Pa + Pbδ(f-fo) + Pbδ(f+fo)
How can I plot such a signal? Thanks