Problem 2019. Dimensions of a rectangle
Solution Stats
Problem Comments

7 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 builtin 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
Solution Comments

1 Comment
math one

2 Comments
nice!
Good problem

1 Comment
Rightangled 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 Solvers3198
Suggested Problems

What is the distance from point P(x,y) to the line Ax + By + C = 0?
302 Solvers

Basics: 'Find the eigenvalues of given matrix
350 Solvers

Who is the smartest MATLAB programmer?
642 Solvers

290 Solvers

945 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!