A résolu


Remove TeX from string
Matlab’s TeX support in figure windows is great for displaying information in a visually appealing way. However, many of the TeX...

environ 11 ans il y a

A résolu


Regex match
Many regular expression engines have a simple function to quickly know whether a regular expression entirely matches a string or...

environ 11 ans il y a

A résolu


TRON Tourney 010: Fixed Pattern CCW
TRON Tournament is based upon the excellent TRON Challenge, <http://www.mathworks.com/matlabcentral/cody/problems/327-tron-chall...

environ 11 ans il y a

A résolu


TRON Tourney 000 : Clockwise Wall Hugger
TRON Tournament is based upon the excellent TRON Challenge, <http://www.mathworks.com/matlabcentral/cody/problems/327-tron-chall...

environ 11 ans il y a

A résolu


Knots Contest: Minimum Knots (TestSuite)
This Challenge is to Minimize the number of Knots for the <http://www.mathworks.com/matlabcentral/contest/contests/38/rules Knot...

environ 11 ans il y a

A résolu


GJam 2014 China Rd A: Rational Number Tree
This Challenge is derived from <http://code.google.com/codejam/contest/2924486/dashboard#s=p1 GJam 2014 China Rational Number Tr...

environ 11 ans il y a

A résolu


GJam 2013 China Event: Happy Teams 100 Pairs
This Challenge is derived from <http://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse> partial...

environ 11 ans il y a

A résolu


GJam 2013 China Event: Happy Teams
This Challenge is derived from <http://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse>. The pr...

environ 11 ans il y a

A résolu


Inhomogenous Depth Scale Interpolation
I recently came across a dataset for physical ocean parameters such as temperature and salinity that provided data in the form o...

environ 11 ans il y a

A résolu


Hungry Snake
Who hasn't played <http://en.wikipedia.org/wiki/Snake_%28video_game%29 the Snake game> when they were little? It's quite hard ...

environ 11 ans il y a

A résolu


Access a web hosted copy of the Tiles Contest MAT file
Access a web hosted copy of the Tiles Contest sample "mat" and verify success by returning for a board the number of tiles, numb...

environ 11 ans il y a

A résolu


With apologies to William Blake
Coder Coder, typing fast Sitting at your desk, aghast. What immortal MATLAB script will solve this problem, nice and qu...

environ 11 ans il y a

A résolu


Accessing value of variable whose name is stored in another variable as string.
Accessing value of variable whose name is stored in another variable as string. for example: var1=n; var2='var1'; %Assigning...

environ 11 ans il y a

A résolu


Diophantine Equations (Inspired by Project Euler, problem 66)
Consider the quadratic Diophantine equation of the form: x^2 – Dy^2 = 1 When D=13, the minimal solution in x is 6492 – 13×...

environ 11 ans il y a

A résolu


Shifted Hexagonal Tiling Dots in a Circle
Return how many <http://en.wikipedia.org/wiki/Hexagonal_grid Hexagonal Tiling> grid points there are inside a circle of radius _...

environ 11 ans il y a

A résolu


GJam 2015 Rd1B: Counter Culture
This Challenge is derived from <https://code.google.com/codejam/contest/8224486/dashboard#s=p0 GJam 2015 Rd 1B: Counter Culture>...

environ 11 ans il y a

A résolu


Steal, Share, or Catch: Tournament of Champions
I am no longer supporting this problem. No changes will be made to put more entries in the test suite, but have fun playing any...

environ 11 ans il y a

A résolu


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

environ 11 ans il y a

A résolu


convert?
* Given a string containing a number followed by pounds or kgs, for example: * 'Billy lost 22 pounds in four weeks.' * 'Maria ...

environ 11 ans il y a

A résolu


Use of regexp
Given a string, containing several sentences, such as: 'I played piano. John played football. Anita went home. Are you safe?...

environ 11 ans il y a

A résolu


Write a function man that takes a row vector v and returns a matrix H as follows..
Write a function called man that takes a row vector v as an input and returns a matrix H whose first column consist of the eleme...

environ 11 ans il y a

A résolu


Fraction of a fraction of a ...
One sort of brainteaser problem is a math problem wherein you are asked what the given fraction of a fraction of a ... number is...

environ 11 ans il y a

A résolu


"Look and say" sequence
What's the next number in this sequence? * [0] * [1 0] * [1 1 1 0] * [3 1 1 0] * [1 3 2 1 1 0] This a variant on the w...

environ 11 ans il y a

A résolu


How close to a hole
Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...

environ 11 ans il y a

A résolu


Evened up (or not)
You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

environ 11 ans il y a

A résolu


De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

environ 11 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. So if input x is x = [1 2 3 5] then the output y should be 11.

environ 11 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. So if input x is x = [1 2 3 5] then the output y should be 11.

environ 11 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. So if input x is x = [1 2 3 5] then the output y should be 11.

environ 11 ans il y a

A résolu


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

environ 11 ans il y a

Charger plus