MATLAB: I want to create 2 sinusoid signals and adding it then create time domain of it first signal amplitude 110 50hz second signal amplitude 10 250hz

MATLAB

t = (0:0.001:1)'; y1 = sin(2*pi*50*t) y2 = sin(2*pi*120*t)
plot(y1,y2)

Best Answer

t = (0:0.001:1);
y1 = 110*sin(2*pi*50*t);
y2 = 10*sin(2*pi*250*t);
plot(t,y1,t,y2)