Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
5年以上 前
解決済み
Times 3 problem
When you enter the number, it should return the number multiplied by 3
5年以上 前
解決済み
Find common elements in matrix rows
Given a matrix, find all elements that exist in every row.
For example, given
A =
1 2 3 5
9 2 5 9
3 2 5 9
...
5年以上 前
解決済み
Times 5
Try out this test problem first.
Given the variable x as your input, multiply it by five and put the result in y.
Examples...
5年以上 前
解決済み
Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively
5年以上 前
解決済み
Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.
5年以上 前
解決済み
Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...
Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9.
no...
5年以上 前
解決済み
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
6年弱 前
解決済み
Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...
6年弱 前
解決済み
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x.
<<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...
6年弱 前
解決済み
Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...
Box!
Given a box, find the volume of the cube. With each side = a.
6年弱 前
解決済み
Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...
6年弱 前
解決済み
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
6年弱 前
解決済み
Beginner's Problem - Squaring
Try out this test problem first.
Given the variable x as your input, square it by two and put the result in y.
Examples:
...
6年弱 前
解決済み
Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.
6年弱 前
解決済み
multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y.
Examples:
Input x = 2
Output y is ...
6年弱 前
解決済み
Y=X
Given an input variable x, output a variable y that is equal in value to x.
Example:
Input x = 1
Output y is 1
Inp...
6年弱 前
解決済み
Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit.
Examples:
Input celsiusValue = 100
Output fahrValu...
6年弱 前
解決済み
How many solutions has this problem?
Guess, predict or calculate :-)
(You will be scored by the accuracy).
Update: <http://www.mathworks.co.uk/matlabcent...