解決済み


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

4年弱 前

解決済み


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

4年弱 前

解決済み


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

4年弱 前

解決済み


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

4年弱 前

解決済み


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

4年弱 前

解決済み


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

4年弱 前

解決済み


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

4年弱 前

解決済み


Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

4年弱 前

解決済み


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

4年弱 前

解決済み


Energy Conversion 2

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年弱 前

解決済み


Convert radians to degrees
Given input in radians, output to degrees

4年弱 前

解決済み


Spherical Volume
Calculate the volume of a sphere.

4年弱 前

解決済み


calculate the length of matrix
input 1 array, calculate the length

4年弱 前

解決済み


Mass Conversion 1

4年弱 前

解決済み


Temperature Conversion 3

4年弱 前

解決済み


Temperature Conversion 2

4年弱 前

解決済み


Temperature Conversion 1

4年弱 前

解決済み


Total energy

4年弱 前

解決済み


Potential energy calculation

4年弱 前

解決済み


Kinetic energy calculation

4年弱 前

解決済み


Laws of motion 1

4年弱 前

解決済み


Laws of motion 2

4年弱 前

解決済み


Laws of motion 3

4年弱 前

解決済み


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

4年弱 前

解決済み


Laws of motion 5

4年弱 前

解決済み


Laws of motion 6

4年弱 前

解決済み


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

4年弱 前

解決済み


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

4年弱 前

解決済み


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

4年弱 前

さらに読み込む