HH, you get no credit for hacking the problem. Only legitimate solutions gain credit.
A commendable solution! The first submission, and a respectable size, sure. But something else setting this apart is the professional-looking use of comments throughout the submission, which provides great insight — without any penalty! Atsushi Ueno is the only one of the first ten solvers to do this (despite the explicit cue). Others maybe should also tackle Problem 44405.
Get the length of a given vector
Length of a short side
Matlab Basics - Rounding III
Finding perimeter of a rectangle
Comparison of floating-point numbers (singles)
Testing for randomness: uniform distribution of integers
Just take it easy for a second or two!
Add all the numbers between two limits (inclusive)
Wait a second!
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