Solved

persistant sum
There will be 9 tests for this problem. In each test you will be provided with 2 integers n=[n1,n2], where n2 is equal to t...

ongeveer 5 jaar ago

Solved

Rotate counterclockwise a matrix 90 deg with left-bottom element
Example: Input [ 1 2 3 4 5 6 ] Output [ 3 6 2 5 1 4 ]

ongeveer 5 jaar ago

Solved

first element of matrix
find the first elements of a column matrix

ongeveer 5 jaar ago

Solved

Where is she?
Given the numbers 12, 3, 6, 9 Tell where the girl is located. That is: Look to your 3 o'clock = look right Example ...

ongeveer 5 jaar ago

Solved

Dice face matrix!
This is dice simulator, but instead of making a random die number, you will receive an "pre-rolled" number in and spit out a mat...

ongeveer 5 jaar ago

Solved

Dots in a Circle
Return how many integer grid points there are inside a circle of radius _r_ centred at (0,0) (including points on the edge). ...

ongeveer 5 jaar ago

Solved

Values in Array
How many values are in the array

ongeveer 5 jaar ago

Solved

Find the index of the first occurrence of a value in a matrix
Given a matrix of scalars, find the first occurrence of -1 in each column. Output NaN for a column which does not contain the va...

ongeveer 5 jaar ago

Solved

Was ist denn los?
Nur für deutschsprechende Leute! Wie geht's? ...also gut, bis bald!

ongeveer 5 jaar ago

Solved

Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

ongeveer 5 jaar ago

Solved

Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not. If each column in a matrix is perpendicular to the other...

ongeveer 5 jaar ago

Solved

deconvolution
* Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients. * In this example, the polynimial is 1*x^3...

ongeveer 5 jaar ago

Solved

drowsy?
This dog() may be drowsy or function immediately when you call, return 1 or 0 accordingly within 2/10 second.

ongeveer 5 jaar ago

Solved

Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

ongeveer 5 jaar ago

Solved

Determine if a row vector has NaN
Determine if a row vector x has NaN

ongeveer 5 jaar ago

Solved

Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

ongeveer 5 jaar ago

Solved

What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...

ongeveer 5 jaar ago

Solved

Finding fourier transform of a given vector
Find the fourier transform of a given input vector for ex a=[1 2 3 4] then y=[ 10.0000 + 0.0000i -2.0000 +...

ongeveer 5 jaar ago

Solved

Find out phase angle of second order system.
Find out the phase angle of a second order system. In a control system, the phase angle is given by the inverse of cos.

ongeveer 5 jaar ago

Solved

Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

ongeveer 5 jaar ago

Solved

Gamma Function
Evaluate the <http://en.wikipedia.org/wiki/Gamma_function/ Gamma Function>. Gamma_val(0) = Inf Gamma_val(1.2) = 0.9182

ongeveer 5 jaar ago

Solved

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

ongeveer 5 jaar ago

Solved

チェッカーボードを作ろう

ongeveer 5 jaar ago

Solved

Calculating Sign Changes in a Row Vector(No Element Is Zero)?
For a row vector V=[7 1 2 -3] has one sign change from 2 to -3. So N=Sign_Changes(V) must return N=1; V=[5 9 -2 7]; h...

ongeveer 5 jaar ago

Solved

Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
Given the square root of a square number, *seed*, and a range, *n*, find the square number, *Z* as well as the other side, *y*, ...

ongeveer 5 jaar ago

Solved

My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

ongeveer 5 jaar ago

Solved

Speed of light:Experiment
in 1849, Fizeau set up an experiment to measure the speed of light. The discription of this experiment can be found on wikipedi...

ongeveer 5 jaar ago

Solved

Alternately upper-lower case
Alternately upper-lower case Let s='achyuta' output='AcHyUtA'

ongeveer 5 jaar ago

Solved

Create a v-notch vector without "sort" function
Given a vector vec, create a v-shaped vector as shown below: vec = [ 10 2 3 89 5 7 90 0 12] ...

ongeveer 5 jaar ago

Solved

Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

ongeveer 5 jaar ago