Community Profile

photo

Jonathan


Last seen: presque 3 ans il y a Actif depuis 2011

Statistiques

All
  • Thankful Level 2
  • Knowledgeable Level 3
  • Puzzler
  • Cody5 Easy Master
  • First Review
  • Divisible by x Master
  • Magic Numbers II Master
  • Matrix Manipulation I Master
  • Project Euler I
  • Sequences And Series I Master
  • Scholar
  • Introduction to MATLAB Master

Afficher les badges

Content Feed

Afficher par

A résolu


Matrix spiral
Make a spiral in a (n*n) matrix. The spiral has to start in the top left, and has to rotate clockwise to the center. The spiral ...

environ 3 ans il y a

A résolu


Twist 'n' Match
Given n and m, construct an n-by-n matrix a such that a, when rotated 90 degrees and compared with itself, matches itself in exa...

environ 3 ans il y a

A résolu


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

presque 4 ans il y a

Question


How to get intlinprog to stop when the answer is good enough?
The code below finds an maximum independent set of the graph whose adjacency matrix is A. I would like to pass an option to intl...

environ 4 ans il y a | 1 réponse | 0

1

réponse

A résolu


Create Circular Perfect Square Sequence
A sequence v(1:N) made of values 1:N can be created for N>31 such that v(i)+v(i+1) is a perfect square. The sum of v(N)+v(1) mus...

environ 4 ans il y a

A résolu


Hamiltonian Cycle
This is related to the Travelling Salesman Problem <http://www.mathworks.com/matlabcentral/cody/problems/1339 1339> created by...

environ 4 ans il y a

Problème


Find a Hamiltonian Cycle in a Graph
You are given a graph g and asked to find a Hamiltonian cycle of g. See <https://www.mathworks.com/help/matlab/ref/graph.html...

environ 4 ans il y a | 0 | 2 solveurs

A résolu


Sudoku Solver - Standard 9x9
Solve a Standard 9x9 <http://en.wikipedia.org/wiki/Sudoku Sudoku>. Values 1 thru 9 occur in each row, column, and the nine non-o...

environ 4 ans il y a

A résolu


GJam 2014 China Rd B: Sudoku Checker
This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p0 GJam 2014 China Sudoku>. Large Cas...

environ 4 ans il y a

A résolu


The sliding puzzle: 15
If you are unfamiliar with the sliding puzzle, enter the command _fifteen_ in your MATLAB command window (or search online, of c...

environ 4 ans il y a

A résolu


The glass half full
Identical glasses are placed in a triangular tower structure, such that the top level (L = 1) comprises one glass, the next leve...

environ 4 ans il y a

A résolu


Sums of Multiple Pairs of Triangular Numbers
This is a follow-up to <https://www.mathworks.com/matlabcentral/cody/problems/44289 Problem 44289> - Find two triangular numbers...

environ 4 ans il y a

A résolu


Find two triangular numbers whose sum is input.
Find two triangular numbers whose sum is _input_. Note: The difference beetween the triangular numbers should be minimum.

environ 4 ans il y a

A résolu


MATLAB Counter
Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b. E...

environ 4 ans il y a

A résolu


Breaking Out of the Matrix
Do you want to take the Red Pill, or the Blue Pill? If you take the Blue Pill, you will simply pass along to the next problem...

environ 4 ans il y a

A résolu


The Top 5 Primes
This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

environ 4 ans il y a

A résolu


Polarisation
You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...

environ 4 ans il y a

A résolu


ASCII Birthday Cake
Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string wit...

environ 4 ans il y a

A résolu


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

environ 4 ans il y a

A résolu


The sliding puzzle: 3D
This is an extension of <https://www.mathworks.com/matlabcentral/cody/problems/42842 problem 42842>. In this case, the puzzle is...

environ 4 ans il y a

Problème


Restricted Multiplication v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...

environ 4 ans il y a | 1 | 7 solveurs

Problème


Restricted Subtraction v1
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...

environ 4 ans il y a | 1 | 9 solveurs

A résolu


Divisible by n, Composite Divisors
Pursuant to <http://www.mathworks.com/matlabcentral/cody/problems/42453-divisible-by-n-prime-vs-composite-divisors Divisible by ...

environ 4 ans il y a

A résolu


Divisible by n, Truncated-number Divisors
Some divisors only require a few numbers at the end of the number in question to determine divisibility, no matter how long. Exa...

environ 4 ans il y a

A résolu


Divisible by n, prime divisors from 20 to 200
Pursuant to the previous problem (linked below), this problem requires a function that checks for divisibility of large numbers ...

environ 4 ans il y a

A résolu


Divisible by n, prime divisors - 11, 13, 17, & 19
Divisibility checks against prime numbers can all be accomplished with the same routine, applied recursively, consisting of add ...

environ 4 ans il y a

Problème


Restricted Addition v4
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45264-restricted-addition-v3 Restricted Addition v3> with...

environ 4 ans il y a | 1 | 8 solveurs

A résolu


Find my secret number
I try to hide a secret number in the workspace amongst others variables. I am paranoid so I change his value and his name a...

environ 4 ans il y a

A résolu


Mirror, mirror on the wall, who is fairest of them all?
The Elo rating system was featured in the movie *The Social Network* during the <https://www.youtube.com/watch?v=BzZRr4KV59I/ al...

environ 4 ans il y a

Problème


Restricted Addition v3
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45258-restricted-addition-v2 Restricted Addition v2> with...

environ 4 ans il y a | 1 | 15 solveurs

Charger plus