Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


Rank of matrix
Find the rank of given matrix

más de 7 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.

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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.

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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)

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Cargar más