Problem 45341. Area-06
Solution Stats
Problem Comments
-
1 Comment
The image is missing at the link. This code will produce the image:
figure; hold on
plot([0 1 1 0 0],[0 0 1 1 0],'k')
t = linspace(0,pi/2); c = cos(t); s = sin(t);
c1 = c(t>=pi/6 & t<=pi/3); s1 = s(t>=pi/6 & t<=pi/3);
plot(c,s,'k',1-c,s,'k',c,1-s,'k',1-c,1-s,'k')
fill([c1 1-fliplr(c1) 1-c1 fliplr(c1)],[s1 fliplr(s1) 1-s1 1-fliplr(s1)],'y')
axis equal; box off; set(gca,'XTick',[],'YTick',[],'XColor','w','YColor','w')
Solution Comments
Show commentsProblem Recent Solvers24
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1930 Solvers
-
Back to basics 8 - Matrix Diagonals
947 Solvers
-
Find the maximum two numbers of every column of a matrix
221 Solvers
-
160 Solvers
-
Find out sum of prime number till given number
260 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!