x = 0:0.005:4;
r = 0.1.*randn(4 / 0.005 + 1, 1);
y = 2.5 * sin(2 * pi * f * x);
plot(x, y);
hold on;
plot(x, r + y);
I want to add the r noise to the y graph but it just creates a mess on picrel. What am I doing wrong?
x = 0:0.005:4;
r = 0.1.*randn(4 / 0.005 + 1, 1);
y = 2.5 * sin(2 * pi * f * x);
plot(x, y);
hold on;
plot(x, r + y);
I want to add the r noise to the y graph but it just creates a mess on picrel. What am I doing wrong?