328 total contributions since 2014

Solved

Find the position of last minimum value in an integer array with numbers

If x = [2 6 4 9 -10 3 1 5 -10] then the output should be 9, because last minimum value (-10) lies at the 9th position.

circa 5 anni ago

Solved

Sum the real and imaginary parts of a complex number

Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3

circa 5 anni ago

Solved

Convert a vector into numbers

Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

circa 5 anni ago

Solved

Create a matrix with difference of each row of input matrix

With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

circa 5 anni ago

Solved

How many digits are there?

Input(s) - any string Output(n) - number of digits within string s

circa 5 anni ago

Solved

Square wave average calculation

Given its peak and duty cycle, calculate avg value of square wave

circa 5 anni ago

Solved

Determine the length of a string of characters

Determine the length of a string of characters

circa 5 anni ago

Solved

What is Sum Of all elements of Matrix

Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

circa 5 anni ago

Solved

Find the position of first minimum value in an integer array with numbers

If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

circa 5 anni ago

Solved

Determine if input is a Narcissistic number

<http://en.wikipedia.org/wiki/Narcissistic_number Narcissistic number> is a number that is the sum of its own digits each raised...

circa 5 anni ago

Solved

Replacing a row

For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

circa 5 anni ago

Solved

Integer or Float?

Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...

circa 5 anni ago

Solved

Test

Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

circa 5 anni ago

Solved

Create an n-by-n null matrix and fill with ones certain positions

The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

circa 5 anni ago

Solved

Narcissistic number ?

Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

circa 5 anni ago

Solved

Fibonacci-Sum of Squares

Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...

circa 5 anni ago

Solved

Find the area of the four walls

If length, breadth and height of the walls are given, find the area of the four walls.

circa 5 anni ago

Solved

Sort complex numbers into complex conjugate pairs

Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

circa 5 anni ago

Solved

Remove entire row and column in the matrix containing the input values

Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...

circa 5 anni ago

Solved

intersection of matrices

Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...

circa 5 anni ago

Solved

Find the maximum two numbers of every column of a matrix

Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

circa 5 anni ago

Solved

Ohm's Law

Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

circa 5 anni ago

Solved

Square Diagonal

If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

circa 5 anni ago

Solved

Find the square of the sum of the digits of a number

If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

circa 5 anni ago

Solved

Average of square wave

given positive and negative peak , calculate dc level, 50% duty cycle

circa 5 anni ago