Resuelto


Find difference of two set as per example
Find difference of two set as per example Say x=[1:5] and y=[2:6] then, set_diff(x,y) should give output[1] and set_diff(y...

alrededor de 9 años hace

Resuelto


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 ...

alrededor de 9 años hace

Resuelto


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

alrededor de 9 años hace

Resuelto


imaginary results
Return the value of the imaginary number i to the power of input argument n.

alrededor de 9 años hace

Resuelto


Convert number from given base to other base
Convert number from given base to other base. Example 400 in base 5, find equivalent number in base 8, it is 144.

alrededor de 9 años hace

Resuelto


Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

alrededor de 9 años hace

Resuelto


Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

alrededor de 9 años hace

Resuelto


Product of Array
Given an array of numbers. Get the product of the array.

alrededor de 9 años hace

Resuelto


Cumulative product of a vector
Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

alrededor de 9 años hace

Resuelto


Try and Catch Simple Example
Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

alrededor de 9 años hace

Resuelto


Decide whether determinant is zero.
Given a 3 x 3 matrix, find the determinant. Let y = true if the determinant is zero, and let y = false if the determinant is no...

alrededor de 9 años hace

Resuelto


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

alrededor de 9 años hace

Resuelto


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

alrededor de 9 años hace

Resuelto


Area of a rectangle
Find the area of a rectangle with sides a and b

alrededor de 9 años hace

Resuelto


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

alrededor de 9 años hace

Resuelto


Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

alrededor de 9 años hace

Resuelto


Powers Of
Fill the vector with powers of 2, so that vector(1) is 2^1, vector(2) is 2^2, etc. Stop with vector(10). Complete the function ...

alrededor de 9 años hace

Resuelto


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

alrededor de 9 años hace

Resuelto


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

alrededor de 9 años hace

Resuelto


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

alrededor de 9 años hace

Resuelto


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

alrededor de 9 años hace

Resuelto


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

alrededor de 9 años hace

Resuelto


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

alrededor de 9 años hace

Resuelto


Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

alrededor de 9 años hace

Resuelto


Find Out sum of principal diagonal element of given matrix
Find out sum of principal diagonal element of given matrix If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.

alrededor de 9 años hace

Resuelto


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

alrededor de 9 años hace

Resuelto


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

alrededor de 9 años hace

Resuelto


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

alrededor de 9 años hace

Resuelto


Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

alrededor de 9 años hace

Resuelto


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...

alrededor de 9 años hace

Cargar más