Resuelto


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

2 meses hace

Resuelto


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

2 meses hace

Resuelto


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

2 meses hace

Resuelto


Product of all elements in an array
Compute the product of all elements in an array.

2 meses hace

Resuelto


Will there be a new leader?
Simply answer the title.

2 meses hace

Resuelto


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

2 meses hace

Resuelto


Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...

2 meses 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].

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

2 meses hace

Resuelto


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

2 meses hace

Resuelto


Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

2 meses hace

Resuelto


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

2 meses hace

Resuelto


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

2 meses hace

Resuelto


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

2 meses hace

Resuelto


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

2 meses hace

Resuelto


Tabuada
Dado um inteiro N, retorne um vetor contendo a tabuada de N de 1 a 10; ex: Tabuada(5) = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50...

2 meses hace

Resuelto


Matrix symmetry
Given a matrix A = [1 2 3; 4 5 6] Flip it horizontally and vertically to obtain a complete reversal of both rows and columns. ...

2 meses hace

Resuelto


Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

2 meses hace

Resuelto


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

2 meses hace

Resuelto


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

2 meses hace

Resuelto


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

2 meses hace

Resuelto


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.

2 meses hace

Resuelto


Matrix Rotation
Write a MATLAB function that rotates a given matrix by 90 degrees clockwise. The rotation should be performed in-place, without ...

2 meses hace

Resuelto


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

2 meses hace

Resuelto


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

2 meses hace

Resuelto


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

2 meses hace

Resuelto


remove nans fast
There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

2 meses hace

Resuelto


Seperate 2nd column in a matrix

2 meses hace

Resuelto


Product of elements in a column

2 meses hace

Cargar más