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

Search This Blog

A Small Tribute To Netaji On 23rd January using MATLAB






CODE:



t=0:0.001:2*pi;



x=cos(t);



y=sin(t);



plot(x,y,'k','linewidth',3)



hold on;



t=0:0.261799387:2*pi;



x=cos(t);



y=sin(t);



plot(x,y,'k','linewidth',2);



hold on;



for(i=1:24)



plot([0,x(i)],[0,y(i)],'k');



hold on



end



hold on;



axis equal



fill([-5 5 5 -5],[1 1 3 3],[1,1,0.3]);



hold on;



fill([-5 5 5 -5],[-1 -1 -3 -3],[0.2 1 0.4]);



hold on;



plot([-5 -5 5 5],[3 -3 -3 3],'k','linewidth',2);



hold on;



plot([-5 -5],[-10 3],'k','linewidth',3);



axis([-6 6 -10 4]);




OUTPUT:


CHECK ON YOUTUBE:


No comments

Popular Posts

Followers