Gelöst


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


Solve expression III
Solve expression for given vector x. Expression = (tan(2*x^2+7*x-30.25)+log(x^3-2.25))/(nthroot(sin(x^3)^2+1/5*log(x^4-2.5),3))...

9 Monate vor

Gelöst


Compare two strings.
Compare two strings, whether they are equal or not.

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


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]

9 Monate vor

Gelöst


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

9 Monate vor

Gelöst


Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.

9 Monate vor

Gelöst


Find sum of negative elements in row.
Find sum of negative elements in row. Example x=[1 -5 3 4 -6 6 7 8 9 10] result = -11

9 Monate vor

Gelöst


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

9 Monate vor

Gelöst


Pascal's triangle
<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

9 Monate vor

Gelöst


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.

9 Monate vor

Gelöst


concatenate the elements
you should concatenate the elements of a matrix in one dimensional array, for example if the input is A = [1 2 3; 4 5 6; 7 ...

9 Monate vor

Gelöst


No more zeros
Given an array with zeros at the beginning or at the end, you should get the output without these zeros: input = [zeros(5...

9 Monate vor

Gelöst


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

9 Monate vor

Gelöst


Problem 44444 !!! free beer everyone
just say hallelujah to solve this problem

9 Monate vor

Gelöst


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

9 Monate vor

Gelöst


lb to kilogram
convert lb to kilogram units, easy

9 Monate vor

Gelöst


Matrix to vector transformation
given a matrix, make in the output 1 column vector putting odd numbers in ascending order after that put the even numbers in des...

9 Monate vor

Gelöst


Ounces to Kilograms
convert ounces to kilograms, easy

9 Monate vor

Gelöst


Mesh the convex hull of a random 3D point cloud
Problem statement The convex hull of a 3D point set is actually a first -though rough- triangulation of it. A triangulation,...

9 Monate vor

Gelöst


Find best domino orientation
Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...

10 Monate vor

Gelöst


Choose the best fitting dominoes
You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be placed...

10 Monate vor

Gelöst


Find best placement for ordered dominoes (harder)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

10 Monate vor

Gelöst


Find perfect placement of non-rotating dominoes (easier)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

10 Monate vor

Gelöst


Infinite precision division
Develop a function that will divide a very very large integer numerator, supplied to function as a string (e.g., '12233344445555...

10 Monate vor

Gelöst


How to multiply?
Imagine you are in 3012 Anno Domini, when everyone must learn how to multiply, and competing for the highly prestigious post of...

10 Monate vor

Gelöst


How to add?
* Imagine you are in 2222 Anno Domini, when everyone must learn how to add, * and competing for the highly prestigious post of,...

10 Monate vor

Gelöst


Project Euler: Problem 16, Sums of Digits of Powers of Two
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^N? Thanks ...

10 Monate vor

Gelöst


rotation et mise à l'échelle avec des complexes
Ecrire une fonction Zr=scale_rot(A,phi,Z) qui permet une mise à l'échelle d'un facteur A et une rotation d'un angle phi (en rad)...

10 Monate vor

Mehr laden