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

1 day ago

Solved


Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

1 day ago

Solved


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

1 day ago

Solved


Square root of a number
Write a code that will output the square root of x.

1 day ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

1 day ago

Solved


Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

1 day ago

Solved


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

1 day ago

Solved


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

1 day ago

Solved


Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

1 day ago

Solved


factorial of a number x
Factorial of a number x

1 day ago

Solved


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

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

1 day ago

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

1 day ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

1 day ago

Solved


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

1 day ago

Solved


Degrees to Radian
Convert degrees to radians

1 day ago

Solved


Radians to Degrees
Convert radians to degrees.

1 day ago

Solved


Divide pi
Divide pi by x!

1 day ago

Solved


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

1 day ago

Solved


Select primes from the matrix.
Select primes from the matrix.

1 day ago

Solved


Range of Values in a Matrix
Create a function that accepts a matrix of real numbers as input and returns the range of the values contained in the matrix. Th...

1 day ago

Solved


Dot Product

1 day 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

1 day ago

Solved


Polygon Interior Angle Sum
Given the number of sides of a regular polygon, find the sum of interior angles. Return 0 for input for which regular polygon a...

1 day ago

Solved


Row avg

1 day ago

Solved


sign function

1 day ago

Solved


Find distance travelled by an object starting from rest in time 't' and linear acceleration 'a' = 3t
Find distance travelled by an object starting from rest in time 't' with linear acceleration a = 3t. You are given time t as an ...

1 day ago

Solved


User defined nextpow function
Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

1 day ago

Solved


iteration of N blank spot
we have N spot which can be blank o filled calculate the number of iteration for these spots. e.g. N=2 1- blank blank 2- blank f...

1 day ago

Solved


System of Linear Equations

1 day ago

Load more