Professional Documents
Culture Documents
clc
clear all
close all
a=2;
theta=pi;
n=5;
t=0:0.1:20;
w=rand(1,10).*linspace(-pi, pi,10);
color=['r','b','g','c','y','m','k','r','b','g'];
for i=1:length(w);
r=sin(w(i)-cos(4*t));
x=r.*cos(t);
y=r.*sin(t);
%x= a*sin((2*pi*w(i)*t)+theta);
%plot(t,x,color(i));
plot(x,y,color(i))
hold on;
end
axis('equal')
xlabel('time');
ylabel('Amplitude')
legend('a*sin((2*pi*w(i)*t)+theta)');