y-correct is incorrect.
Surface area is 2*pi*r*h+pi*r^2.
The solution claims pi*r*h+pi*r^2.
Please correct. 6/05/12
Whew...I thought I was being stupid and getting the formula wrong.
I went ahead and fixed the test. Thanks for the comments.
This Problem may as well be deleted. There is only one case in the Test Suite, and the required formula is given both in the Comments and within the Test Suite itself. There is no challenge when Players can simply copy-and-paste to 'solve' the Problem.
Make the vector [1 2 3 4 5 6 7 8 9 10]
Given an unsigned integer x, find the largest y by rearranging the bits in x
Flip the main diagonal of a matrix
Get the length of a given vector
Find the area of a triangle
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office