Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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.

oltre 11 anni fa

Risolto


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.

oltre 11 anni fa

Risolto


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.

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Carica altro