Resuelto


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

alrededor de 12 años hace

Resuelto


Unique values without using UNIQUE function
You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...

alrededor de 12 años hace

Resuelto


Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

alrededor de 12 años hace

Problema


Elements with highest local average
Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

alrededor de 12 años hace | 1 | 98 solvers

Resuelto


Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

alrededor de 12 años hace

Resuelto


Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

alrededor de 12 años hace

Resuelto


Determine if input is a Narcissistic number
<http://en.wikipedia.org/wiki/Narcissistic_number Narcissistic number> is a number that is the sum of its own digits each raised...

alrededor de 12 años hace

Resuelto


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

alrededor de 12 años hace

Resuelto


Uniform binary crossover
Given two binary vectors, return the two children by combining the genes of them using a binary crossover mask. More informat...

alrededor de 12 años hace

Resuelto


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

alrededor de 12 años hace

Resuelto


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

alrededor de 12 años hace

Resuelto


Determine the square root
Determine the square root of the value the user has entered, n.

alrededor de 12 años hace

Resuelto


Symmetric matrix
You must create a n-by-n *symmetric* matrix such that A(row,col) = row/col for col >= row. Example if n =3 : output is : ...

alrededor de 12 años hace

Resuelto


Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

alrededor de 12 años hace

Resuelto


Person of interest?
given a person_of_interest, what is his_name?

alrededor de 12 años hace

Resuelto


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

alrededor de 12 años hace

Resuelto


ベクトルのスケーリング
入力したベクトルの大きさを1にしてください。

alrededor de 12 años hace

Resuelto


Wind outward from the center ...
Create an n-by-n matrix with elements ranging from 1 to n^2 in a rectangular spiral pattern. Example if n = 5 : 21 ...

alrededor de 12 años hace

Resuelto


Back to basics - mean of corner elements of a matrix
Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

alrededor de 12 años hace

Resuelto


edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

alrededor de 12 años hace

Resuelto


Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...

alrededor de 12 años hace

Resuelto


convert matrix to single column
given any matrix, convert it to single column

alrededor de 12 años hace

Resuelto


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

alrededor de 12 años hace

Resuelto


Calculate the derivative of a polynomial
Example: in = [ 1 1 1 ] out = [ 2 1 ]

alrededor de 12 años hace

Resuelto


Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

alrededor de 12 años hace

Cargar más