Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

MATLAB Program for MOON

Join us: https://www.facebook.com/groups/MATLABCODES/ 
Join us on Telegram : https://t.me/matlabirawen


Code:

clc
clear all
close all
figure;
pause(5);
axis([-2 2 -2 2]);
hold on;
fill([-2 2 2 -2],[-2 -2 2 2],'k');
hold on;
t=0:0.01:2*pi;
e=10*rand(1,length(t)).*cos(t);
f=10*rand(1,length(t)).*sin(t);
for i=1:length(e)
    x=e(i)+0.02*cos(t);
    y=f(i)+0.02*sin(t);
    patch(x,y,'w');
    hold on;
end
hold on;
t=0:0.01:2*pi;
x=cos(t);
y=sin(t);
fill(x,y,'w');
axis square;
x=0.3+0.7*cos(t);
y=0.1+0.7*sin(t);
fill(x,y,'k');


No comments

Popular Posts