**Using Matlab**

**Draw two sine waves connected together, one of which has twice the frequency of other.**

**Program**

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
%Program Code for Drawing two circles one having radius twice the other %provided by electricalvoice.com clc clear all x=input('Enter x-cordinate of center of circle:'); y=input('Enter y-cordinate of center of circle:'); r=input('Enter radius of circle:'); ang=0:0.01:2*pi; xp=r*cos(ang); yp=r*sin(ang); plot(x+xp,y+yp) hold on plot(x+2*xp,y+2*yp) hold off |

MATLAB Program for Drawing two circles one having radius twice the other