Solved


Convert array of decimal numbers into binary numbers array.
Convert array of decimal numbers into binary numbers array. Example x = [1 2 3 4 5 6 7 8 ]; re...

10 years ago

Solved


Count given word x in text.
Count how many times given word x repeats in text.

10 years ago

Solved


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

10 years ago

Solved


Chicken Race
2 chickens, Pete and Fred, compete in a 100 meter race. Pete runs at a velocity of vp meter/second and Fred is slower, running ...

10 years ago

Solved


How to find average of each column ?
How to find average of each column for a given matrix?

10 years ago

Solved


How find sum of elements of each column in matrix?
How find sum of elements of each column in matrix?

10 years ago

Solved


product of given two numbers?
product of given two numbers?

10 years ago

Solved


how to round off a given number containing decimals?
how to round off a given number containing decimals?

10 years ago

Solved


How find minimum element of a column in matrix?
How find minimum element of a column in matrix?

10 years ago

Solved


Assignment Problem
Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

10 years ago

Solved


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

10 years ago

Solved


Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

10 years ago

Solved


jumping astronauts
The surface gravity on the moon is approximately 2 m/s^2. Thats why an funny astronauts feels as light as a feather and jumps fr...

10 years ago

Solved


Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

10 years ago

Solved


Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.

10 years ago

Solved


Block average
Given a matrix, calculate the block average of each disjoint sub-matrix of the same size. Assume that the size of the matrix alo...

10 years ago

Solved


Convert float to base N
The matlab function dec2base converts a positive integer number to a specified base. Extend it so that it works with non intege...

10 years ago

Solved


Calculate solution of given polynomial
For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

10 years ago

Solved


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

10 years ago

Solved


Set number x for diagonal of square matrix, which size is n.
Set number x for diagonal of square matrix, other values should be equlal 0, which size is n. Example n=2, x=4: [4 0; 0 4]

10 years ago

Solved


Find the sum of the negative elements under the main diagonal.
Example Input A=[1 2; -3 0] Output -3

10 years ago

Solved


how to create zero square matrix with given order?
y-Zero square matrix with given input order x.

10 years ago

Solved


Magnitude of a vector
Given a vector x, what is its magnitude?

10 years ago

Solved


Cellular Automaton | Rule X
Cellular Automata (CA) provide a convenient way to represent many kinds of systems in which the values of cells (either 0 or 1) ...

10 years ago

Solved


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

10 years ago

Solved


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

10 years ago

Solved


Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

10 years ago

Solved


How Far Can You Throw Something?
As you probably learned in your high school physics class, throwing an object at a 45 degree angle will give you the maximum ran...

10 years ago

Solved


Increasing sub-sequence (Level 1)
Given a vector, v, of real numbers, return a positive integer, n, representing the longest contiguous increasing sub-sequence co...

10 years ago

Solved


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

10 years ago

Load more