daVani
Newbie level 4
Hi everybody
I'm trying to plot some simple digital signals in MATLAB, for example this one:
x=linspace(0,1,100);
y=-cos(2*pi*(4500000)*x)+sin(2*pi*(4500000)*x);
plot(x,y);
As you can see when plotting this signal it repeats itself and it's kinda edgy, so I want to reduce the time period (0 - 0.2) and make the curve more soft but I can't do it. When I change the time period the signal is still edgy as hell! I think it's easy to do it but I'm new to MATLAB.
Any help?
I'm trying to plot some simple digital signals in MATLAB, for example this one:
x=linspace(0,1,100);
y=-cos(2*pi*(4500000)*x)+sin(2*pi*(4500000)*x);
plot(x,y);
As you can see when plotting this signal it repeats itself and it's kinda edgy, so I want to reduce the time period (0 - 0.2) and make the curve more soft but I can't do it. When I change the time period the signal is still edgy as hell! I think it's easy to do it but I'm new to MATLAB.
Any help?