解決済み


Path of least resistance
Find the length of the shortest path through the matrix from the top left to bottom right corner. You may move right, down, or d...

約4年 前

解決済み


How many rectangles in a grid ?
How many rectangles are there in an m × n grid ? For example, if m=1 & n=2, we have 3 rectangles.

約4年 前

解決済み


Generate binary combinations for a given number of bit(s)
Generate the binary combination as in the example below. Example: If you are given: bin_comb(2) The answer will be: ...

約4年 前

解決済み


Mass Conversion 1

約4年 前

解決済み


Temperature Conversion 3

約4年 前

解決済み


Temperature Conversion 2

約4年 前

解決済み


Temperature Conversion 1

約4年 前

解決済み


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

約4年 前

解決済み


Return area of square
Side of square=input=a Area=output=b

約4年 前

解決済み


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

約4年 前

解決済み


Kinetic energy calculation

約4年 前

解決済み


Potential energy calculation

約4年 前

解決済み


Total energy

約4年 前

解決済み


Laws of motion 6

約4年 前

解決済み


Laws of motion 5

約4年 前

解決済み


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

約4年 前

解決済み


Laws of motion 3

約4年 前

解決済み


Laws of motion 2

約4年 前

解決済み


Laws of motion 1

約4年 前

解決済み


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

約4年 前

解決済み


Add two numbers
Given a and b, return the sum a+b in c.

約4年 前

解決済み


True engineer
Prove that pi is indeed equal to e. Return 1 by rounding pi and e to the nearest integer then asserting rounded pi and e are eq...

約4年 前

解決済み


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

約4年 前