Resuelto


Find if a given sentence is a palindrome
Given a string/character array, return true if the string is a palindrome else returns false. For example: sample_text =...

más de 1 año hace

Resuelto


Performance - summation
Given a vector of natural numbers x = [1,2,3,...,N] compute the sum of its elements by not stressing the machine too much...

más de 1 año hace

Resuelto


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

más de 1 año hace

Resuelto


Generate a melodic contour string matrix
<http://en.wikipedia.org/wiki/Parsons_code Parsons code> is a surprisingly effective way to identify music by its melodic motion...

más de 1 año hace

Resuelto


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

más de 1 año hace

Resuelto


Percentage profit:2
If you are selling at x dollar, you are facing r1% profit; what will be the selling price for making r2% profit?

más de 1 año hace

Resuelto


Intercambiar columnas

más de 1 año hace

Resuelto


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

más de 1 año hace

Resuelto


Basic matlab numeric and string manipulations
If entered input (n) is _numeric_ , compute its *log to the base (n+2)* , if it is a _lower case_ alphabet, *convert it to i...

más de 1 año hace

Resuelto


Find the number of rectangles
There is a m*n grade given. Find the number of rectangles in the grid. Remember, a square is also a rectangle.

más de 1 año hace

Resuelto


Create formatted value string Cell array of a vector
This Challenge is to create a cell array that contains strings of vector components in a given format. c=vector2formattedstri...

más de 1 año hace

Resuelto


Dealfun (1.0)
*Short description.* Write a function _dealfun_: [y1,y2,...,yn]=dealfun(fhandle,x1,x2,...,xn) which evaluates the f...

más de 1 año hace

Resuelto


Digits Multiplication
Your function should calculate the product of the digits of a positive given integer excluding any zeroes. Example: the result ...

más de 1 año hace

Resuelto


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

más de 1 año hace

Resuelto


Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values. For example, for the list [-30, -5, 1...

más de 1 año hace

Resuelto


Find the area between curves (P1)

más de 1 año hace

Resuelto


Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

más de 1 año hace

Resuelto


The maximum sum of squares
Create a function file with an input maxval to determine the maximum number of terms for the series 1^2 + 2^2 + 3^2 + ... such t...

más de 1 año hace

Resuelto


Global usage
This Challenge is to utilize Global variables. Global variables are risky as the subroutine may inadvertently and unwantingly...

más de 1 año hace

Resuelto


Reverse Integer
You are given an integer, reverse its digits. For negative integers, the sign should remain in the front. For instance, 12340 s...

más de 1 año hace

Resuelto


apply zero padding to a matrix

más de 1 año hace

Resuelto


Create rectangular function.
Rectangular function - Wikipedia

más de 1 año hace

Resuelto


Number Puzzle - 042

más de 1 año hace

Resuelto


Number Puzzle - 028

más de 1 año hace

Resuelto


Median filter over three values
Implement 1-D median filter over input vector x as described: Moving window size is 3 Output is middle/central value in moving...

más de 1 año hace

Resuelto


generate capital english alphabets
Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

más de 1 año hace

Resuelto


Find Missing Number
A little problem (inspired by CodeChef) for the coffee break. A friend give you an array of size n-1 integers and these int...

más de 1 año hace

Resuelto


Logarithmically spaced vector creation using logspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Use the logspace operator.

más de 1 año hace

Resuelto


How many apples
You have x apples I take from you y apples now how many apples you have ?

más de 1 año hace

Cargar más