A résolu


Return the sequence element II
Given positive integers x and n, return a positive integer, y, which is the nth term in the <https://en.wikipedia.org/wiki/Juggl...

plus de 9 ans il y a

A résolu


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

plus de 9 ans il y a

A résolu


How to permute given 3d matrix?
A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

plus de 9 ans il y a

A résolu


Calculate this one!
Using matlab calculate y y=(e^2)+100/20+sin(pi)*x Use x as a input.

plus de 9 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 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

plus de 9 ans il y a

A résolu


Create vector as shown in test cases
Create vector as shown in test cases

plus de 9 ans il y a

A résolu


Сoncatenate two strings.
Сoncatenate two strings. Example s1='Hello' s2='world' result='Hello world'

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Save variables
a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

plus de 9 ans il y a

A résolu


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

plus de 9 ans il y a

A résolu


Derive Me Crazy
Given a polynomial, output its derivative. Example: input = [1 0 0] % x^2 output = [2 0] % 2x

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Sample from random roulette
Given a list of values and their probabilities sample 10.000 values. Example: x = [1 2 3 4 5]; prob = [0.2 0.1 0.4 0....

plus de 9 ans il y a

A résolu


Find the path through the cell
A list of cells is given. Return true if the elements of the list increase monotonically (each element is strictly larger tha...

plus de 9 ans il y a

A résolu


Finding two missing number in 1 to n array
You are given an array of numbers from 1 to n with two missing numbers. Return the two missing numbers. Input: x=[5 2 0 1 ...

plus de 9 ans il y a

A résolu


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

plus de 9 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 9 ans il y a

A résolu


Resort number using given index!
Resort matrix [a] using given index [b]. For example, if a=[2 5 3 5]; b=[4 1 2 3]; , the result is [5 2 5 3]. (hint: y...

plus de 9 ans il y a

A résolu


Calculate gradient
x=1:0.1:5; y=@(x)x^2; calculate gradient (dy/dx) using numerical method. This means dydx(i)=(y(i+1)-y(i))/(x(i+1)-x...

plus de 9 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 9 ans il y a

A résolu


Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Solve expression II
Solve given expression. alpha=0.1(-x-y-50)/(exp((-x-y-50)/10)-1) beta=5exp((-x+y-60)/20) result=alpha+beta;

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Vectors multiplication.
Multiply two vectors x transposed and y.Example x = [1 2 3 4 5 6 7 8 9 10 ] y = [ 1 2 ...

plus de 9 ans il y a

A résolu


Removing vibration!
There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

plus de 9 ans il y a

A résolu


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

plus de 9 ans il y a

A résolu


Non trivial identities - multiplication
Return x after multipying it.

plus de 9 ans il y a

Charger plus