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
There is an ambiguity between the length and width.
Are these problems only for getting a Badge? ????
good
Awful wording: longer and shorter side, then width and length.
% x^2 = W^2 + L^2
% L =3*W
Could we solve these equations in matlab?
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".
17553 Solvers
Find the numeric mean of the prime numbers in a matrix.
6826 Solvers
Project Euler: Problem 5, Smallest multiple
409 Solvers
Replace multiples of 5 with NaN
362 Solvers
3008 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!