The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width and length of the rectangle.
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.
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".
Is A the inverse of B?
"Low : High - Low : High - Turn around " -- Create a subindices vector
Set the array elements whose value is 13 to 0
Matlab Basics - Convert a row vector to a column vector
Is this triangle right-angled?
Length of a short side
Side of a rhombus
Find a Pythagorean triple
Area of an equilateral triangle
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