Max of a Vector
Write a function to return the max of a vector
3 years 前
已解决
Box!
Given a box, find the volume of the cube. With each side = a.
3 years 前
已解决
only input
Return the output without writing any code into the function.
3 years 前
已解决
Error handling
If the input is a negative number, generate an error. Otherwise, return the number.
3 years 前
已解决
What's Your BMI?
Find the body mass index.
For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...
3 years 前
已解决
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
3 years 前
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
Non-scor...
Mode
Find the mode of the vector
Assumption: no vector is bimodal
Example 1: input=[1 2 3 4 4]; output=4
Example 2: input=[7...
3 years 前
已解决
Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...