Max of a Vector
Write a function to return the max of a vector
3 years ago
Solved
Box!
Given a box, find the volume of the cube. With each side = a.
3 years ago
Solved
only input
Return the output without writing any code into the function.
3 years ago
Solved
Error handling
If the input is a negative number, generate an error. Otherwise, return the number.
3 years ago
Solved
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 ago
Solved
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 ago
Solved
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 ago
Solved
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 ...