A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


Rank of matrix
Find the rank of given matrix

plus de 7 ans il y a

A résolu


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.

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

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

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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.

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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)

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

Charger plus