문제를 풀었습니다


Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

7년 초과 전

문제를 풀었습니다


Vandermonde Matrix
Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column i...

7년 초과 전

문제를 풀었습니다


Coin Tossing: Probability of Same Heads for N tosses
A pair of physicists toss a coin n times each. What is the probability that they tossed the same number of heads? *Input:*...

7년 초과 전

문제를 풀었습니다


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

7년 초과 전

문제를 풀었습니다


Rank of matrix
Find the rank of given matrix

7년 초과 전

문제를 풀었습니다


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.

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Pairwise Euclidean Distance
Given two matrices A,B of dimensions NxK and NxL respectively, calculate the pairwise euclidean distance of all vectors (columns...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Replace Nan!
Replace Nan in the given vector(v) with 9999.

7년 초과 전

문제를 풀었습니다


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

7년 초과 전

문제를 풀었습니다


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

7년 초과 전

문제를 풀었습니다


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

7년 초과 전

문제를 풀었습니다


row removal
Consider a matrix and remove the first row of the matrix.

7년 초과 전

문제를 풀었습니다


How many bottles can you drink?
Sometimes if you buy a drink in a glass bottle you can return that bottle and get some money back. Let's assume we have "x" a...

7년 초과 전

문제를 풀었습니다


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

7년 초과 전

문제를 풀었습니다


Logarithm with base other than 'e'
The standard log() function in Matlab returns the natural logarithm (base equal to Euler's constant). Compute the logarithm for ...

7년 초과 전

문제를 풀었습니다


Raise a polynomial to a power
In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

7년 초과 전

문제를 풀었습니다


determine if
determine if the elements of a matrix is a nan and return true

7년 초과 전

문제를 풀었습니다


Calculate Simple Intrest for given data
P,N,R stands for Principle amount, No. of years and rate of intrest resp. Calculate intrest I

7년 초과 전

문제를 풀었습니다


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

7년 초과 전

문제를 풀었습니다


Distances in a circle
A circle (360°) is given and a row of 6 monotonic increasing numbers with the which difference from last to first value is les...

7년 초과 전

문제를 풀었습니다


Converter temp 0 to 200 degree C to 4 to 20mA
Converter temp 0 to 200 degree C to 4 to 20mA (It is used in transmitter)

7년 초과 전

문제를 풀었습니다


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

7년 초과 전

문제를 풀었습니다


Find the mode of the given input
Find the statistical <http://en.wikipedia.org/wiki/Mode_(statistics)/ mode> of the given input. Example: If X is matr...

7년 초과 전

문제를 풀었습니다


Edges of a n-dimensional Hypercube
Return the number of edges on an <http://en.wikipedia.org/wiki/Hypercube _n_-dimensional hypercube> (with an integer n &ge; 0). ...

7년 초과 전

문제를 풀었습니다


Local Minima
Given a vector of data x, find the values of local minimum that is smaller than its neighbor elements. For example, if x =...

7년 초과 전

문제를 풀었습니다


Step up
For given input array, output a array with all elements step up by two

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Path of least resistance
Find the length of the shortest path through the matrix from the top left to bottom right corner. You may move right, down, or d...

7년 초과 전

더 보기