A résolu


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

plus de 7 ans il y a

A résolu


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

plus de 7 ans il y a

A résolu


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

plus de 7 ans il y a

A résolu


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

plus de 7 ans il y a

A résolu


Zero Cross
Write a function that counts the number of times n a signal x changes sign. Examples x = [1 2 -3 -4 5 6 -7 8 -9 10 11] ...

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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?

plus de 7 ans il y a

A résolu


Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

plus de 7 ans il y a

A résolu


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

plus de 7 ans il y a

A résolu


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

plus de 7 ans il y a

A résolu


Set x value to each even index of vector y.
Set x value to each even index of vector y.

plus de 7 ans il y a

A résolu


Find scalar product of two polynomials a and b, given as vector array.
Find scalar product of two polynomials given as vector array. Example a=[1 -1 2]; b=[2 4 1]; result=0

plus de 7 ans il y a

A résolu


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

plus de 7 ans il y a

A résolu


Pointwise multiplication of vectors.
Pointwise multiplication of vectors x and y. Example x= [1 3 5 7 9 11 13 15 17 19] y=[ 1 4...

plus de 7 ans il y a

A résolu


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

plus de 7 ans il y a

A résolu


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

plus de 7 ans il y a

A résolu


Display positive elements of matrix.
Display positive elements of matrix.

plus de 7 ans il y a

A résolu


Sum of self power series
The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

plus de 7 ans il y a

A résolu


Calculate roots of polynomial given as vector array.
Calculate roots of polynomial given as vector array. Example x=[1 2 0 5 0 3] result=[-2.7267 ; ...

plus de 7 ans il y a

A résolu


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

plus de 7 ans il y a

A résolu


Nth root
Nth root of a number x

plus de 7 ans il y a

A résolu


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

plus de 7 ans il y a

A résolu


Radians to Degrees
Convert radians to degrees.

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

plus de 7 ans il y a

A résolu


Linear system of equations
Solve the system of equations in three variables.

plus de 7 ans il y a

A résolu


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

plus de 7 ans il y a

A résolu


Convert radians to degrees
Given input in radians, output to degrees

plus de 7 ans il y a

A résolu


Beat the test suite if you can :)
Solve this problem based on clues in the test suite.

plus de 7 ans il y a

A résolu


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

plus de 7 ans il y a

Charger plus