ده الكود الي انا استخدمته الشكر للشيخ فداء عرفة الغلط فين >> t=0:0.01*pi:2*pi;
num1=input('Enter first wave frequancy')
y=sin(num1*t);
num2=input('Enter secound wave frequancy')
car=cos(num2*t);
figure(1);
subplot(3,1,1)
plot(t,y) % this will draw the input signal wave
xlabel('time')
ylabel('amplitude')
title('sinwave')
gtext('input wave')
subplot(3,1,2)
plot(t,car) % this will draw the carrier signal wave
xlabel('time')
ylabel('amplitude')
title('coswave')
gtext('carier wave')
mod=y.*car;
subplot(3,1,3)
plot(t,mod) % this will draw the final signal wave
gtext('modulation wave')
هطبعلك نسخة من كودك يفداء