Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %t = linspace(0, 2*pi, 100000)
- %y = sin(sin(t));
- %subplot(1,2,1)
- %plot(y, 'r --')
- %subplot(1,2, 2)
- %plot(g, 'b')
- %title('MY WORLD')
- %grid on
- %legend('y', 'g')
- %comet(x,y)
- %x = linspace(-5, 5, 100);
- %y1= 0.1*exp(1+x);
- %y2 = 1./ (1 + 1./(1+x));
- %plot(x, y1, x, y2)
- %[xx,yy]= ginput(2)
- Ax = rand*20 - 10
- Ay = rand*20 - 10
- plot(Ax, Ay, '*')
- axis ([-10 10 -10 10])
- hold on
- x = rand(1,10)*20 - 10;
- y = rand(1, 10)*20 - 10;
- r = rand(1, 10)*20 - 10;
- t = linspace(0.2*pi, 100)
- for i = 1:10
- x = r(i).* sin(t) + x(i);
- y = r(i).* cos(t) + y(i);
- if(r(i) < ((Ax-x(i))^2+((Ay-y(i))^2)^(1/2)))
- plot(x,y, 'r')
- axis equal
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement