Problem 2019. Dimensions of a rectangle
Solution Stats
Problem Comments
-
9 Comments
An interesting problem providing the sqrt(10) factor.
Do you know that "rectangle" is a Matlab function???????????????????????????????????
The function name 'rectangle' is duplicated with the built-in function. Cannot execute the test trial.
There was no correct solution since October, 12th, due to a defect in the test.
Thank you for renaming the function.
The test trials now can be executed correctly.
great problem
function [width, length] = findRectangleDimensions(x)
width =sqrt(x^2/10);
length = 3*width;
end
pretty interesting
good problem!
Solution Comments
-
1 Comment
math one
-
2 Comments
nice!
Good problem
-
1 Comment
Right-angled Triangle
-
1 Comment
cool problem
-
1 Comment
There is an ambiguity between the length and width.
-
1 Comment
Are these problems only for getting a Badge? ????
-
1 Comment
good
-
1 Comment
Awful wording: longer and shorter side, then width and length.
-
1 Comment
% x^2 = W^2 + L^2
% L =3*W
Could we solve these equations in matlab?
-
2 Comments
The problem statement should specify which (the width or the height) is the longer side of the rectangle.
By convention, length is taken as greater than (or equal) to width if no other information is available. Not sure if the problem statement was rewritten, but currently there's no mention of "height".
Problem Recent Solvers4200
Suggested Problems
-
1972 Solvers
-
Renaming a field in a structure array
1206 Solvers
-
Getting the indices from a matrix
576 Solvers
-
478 Solvers
-
2721 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!