Resuelto


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

casi 9 años hace

Resuelto


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

casi 9 años hace

Resuelto


Relation between functions "dec2bin" & "dec2binvec"
Here it's an easy problem we try to find the relation between the two functions "dec2bin" & "dec2binvec", so here you must write...

casi 9 años hace

Resuelto


I'm going to enjoy watching you calculate, Mr Anderson
Smith numbers are numbers such that if you add up all of the digits in the number, that sum equals the sum of all of the digits ...

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.

casi 9 años hace

Resuelto


raise 1/3
Raise a number to 1/3 power.

casi 9 años hace

Resuelto


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

casi 9 años hace

Resuelto


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

casi 9 años hace

Resuelto


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

casi 9 años hace

Resuelto


Iterative sum of digits of 2^n number
Given n, calculate the number 2^n (where n>=0) and *iterate* until the sum of the digits is a single-digit number. Example: ...

casi 9 años hace

Resuelto


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.

casi 9 años hace

Resuelto


Area of square
find the area of the square, whose length of diagonal is given as x.

alrededor de 9 años hace

Resuelto


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

alrededor de 9 años hace

Resuelto


Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...

alrededor de 9 años hace

Resuelto


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

alrededor de 9 años hace

Resuelto


Weighted average
Compute the weighted average Y, of the vector A, given the weight vector W. The weighted average is the sum of the dot produc...

alrededor de 9 años hace

Resuelto


Solve the system of equations.
_Ax=b_ * _A_ - square coefficient matrix * _b_ - right side column vector Find vecor _x_.

alrededor de 9 años hace

Resuelto


Refresh your system of equations
Given square matrix, and solution vector, find the values of the variables Example: xyz = [1 -1 2; 0 2 5; 4 0 -3]; //x-y+2...

alrededor de 9 años hace

Resuelto


Calculate correlation.
There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

alrededor de 9 años hace

Resuelto


Input & Output "Smart One"
If i give my secret function a x value as input the result will be y value as output. Examples: input: x=6 ----->>> output: ...

alrededor de 9 años hace

Resuelto


Find my secret function IV
We use the same secret function used on the past "Find my secret function ..." x=23 -------->> y=3 X=1000 ------->> 163

alrededor de 9 años hace

Resuelto


Find my secret function III
only write a function gives you an outputs as expls: input: x=2 ------->>> Output: Y=1 input: x=100 ------->>> Output: Y=...

alrededor de 9 años hace

Resuelto


Find my secret function II
If give my function a x value it will give me a y value, so find the secret of it: Examples: input x=23 ---- >>> output y=1...

alrededor de 9 años hace

Resuelto


Find the maxmum value of N*N Matrix
Input x=[1 2 3; 4 5 6; 7 8 9] output: y=9

alrededor de 9 años hace

Resuelto


GJam 2017 Kickstart: Leader (Small)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader>. This ...

alrededor de 9 años hace

Resuelto


Matrix game: Winner takes all
Given a matrix A, return a new matrix of the same size in which the biggest element of each column in A takes 1, and 0 for all t...

alrededor de 9 años hace

Resuelto


Recycled Numbers (CodeJam Qualification Round 2012)
Let's say a pair of distinct positive integers ( _n_ , _m_ ) is recycled if you can obtain _m_ by moving some digits from the ...

alrededor de 9 años hace

Resuelto


Matrix of Multiplication Facts
This is James's daughter again, sneaking into his Cody account. Thanks to your help in my math class last year, I did great! B...

alrededor de 9 años hace

Resuelto


Is matlab fun?
Returns 'yes' no matter the input.

alrededor de 9 años hace

Cargar más