A résolu


Roman numbers: how old is that building?
The front of old buildings sometimes show the year when they were built in roman numbers. These number are rather confusing and ...

13 jours il y a

A résolu


Takuzu row
Takuzu row is one row in a logic puzzle of a rectangular grid. The rules are as follows: (1) The row is filled with 1s and 0s...

13 jours il y a

A résolu


Function Call Counter

14 jours il y a

A résolu


Clear functions with the same name in different packages independently
See the test suite. N.B.: Overwriting files or functions a.k.a. cheating is not necessary.

14 jours il y a

A résolu


Tracer un carré de côté a et de centre O
Définir une fonction carre qui prend en entrée un salaire a et un vecteur O de deux élements représentant les coordonnées cartés...

15 jours il y a

A résolu


Boolean algebra
Your contractor from Elbonia has sent you the prototype of the new logical unit. It turns out that the only logical relation it ...

15 jours il y a

A résolu


Singleton Expansion without BSXFUN
BSXFUN is very useful and fast. In R2015b we can implement singleton expansion without BSXFUN, see the test suite for details...

15 jours il y a

A résolu


Derivative function
Given a function handle f, generate a function that evaluates the derivative of f Examples: f = @sin; df = De...

15 jours il y a

A résolu


Find the area between curves (P4)

16 jours il y a

A résolu


Find the area between curves (P2)

16 jours il y a

A résolu


Multivariate polynomials - sort monomials
In <https://www.mathworks.com/matlabcentral/cody/problems/44260-multidimensional-polynomials-convert-monomial-form-to-array Prob...

16 jours il y a

A résolu


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

16 jours il y a

A résolu


Restricted Multiplication v1
This problem is Restricted Addition v4 with multiplication and more restrictions. multiply two inputs without use of common ari...

16 jours il y a

A résolu


Restricted Subtraction v1
This problem is Restricted Addition v4 with subtraction and more restrictions. Subtract two inputs without use of common arithm...

16 jours il y a

A résolu


Restricted Addition v4
This problem is Restricted Addition v3 with more restrictions. Also, you must handle matrices. Add two inputs without use of co...

16 jours il y a

A résolu


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

16 jours il y a

A résolu


Restricted Addition v2
This problem is Restricted Addition v1 with more restrictions. Also, you must handle negative and non-integer values. Add two n...

16 jours il y a

A résolu


N-Queens: Count All Valid Arrangements
The N-Queens puzzle places N queens on an N×N chessboard such that no two queens attack each other. A queen can attack another ...

16 jours il y a

A résolu


Function minimization - global minimum
Sequel of problem 45951 <https://www.mathworks.com/matlabcentral/cody/problems/45951> Can you do even better, within the r...

17 jours il y a

A résolu


Function minimization - beat fminsearch!
Sequel of problem 45948 <https://www.mathworks.com/matlabcentral/cody/problems/45948-function-minimization-beat-fminbnd> M...

17 jours il y a

A résolu


Function minimization - beat fminbnd!
Matlab's fminbnd function finds a minimizer of a function within an interval. If often gets stuck in local minima. Can you do...

17 jours il y a

A résolu


Bounding Circle
The Bounding Circle is the smallest enclosing circle to a given set of points on a plane <https://en.wikipedia.org/wiki/Smallest...

17 jours il y a

A résolu


Least Absolute Deviations (L1-norm) line fit - degree n
This is a generalization of Problem 45851 for degree n <https://www.mathworks.com/matlabcentral/cody/problems/45851-least-abs...

17 jours il y a

A résolu


Least Absolute Deviations (L1-norm) line fit - degree 1
Matlab's polyfit function is very handy to find least-squares regression. It minimizes the (L2-norm) of the estimation errors, b...

17 jours il y a

A résolu


What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...

18 jours il y a

A résolu


Convert vector datasets to plot with imagesc instead of scatter
For large datasets this allows much faster plotting. An irregular 2D spatial sampling is provided in x and y vectors with a d...

18 jours il y a

A résolu


Magic Concentric Circles
Consider 4 magic circle circles around a single number in the sequence 1:n where the sum along the diameters is always equal, an...

18 jours il y a

A résolu


Key Generation for Solitaire Cipher
The Solitaire Cipher by Bruce Schneier was introduced to Cody in two problems by Doug Hull: http://www.mathworks.com/matlabcent...

18 jours il y a

A résolu


Borderline Connectivity
Compute the connected components of pixel borders. Suppose that h and v together describe a logical labeling of the borders b...

18 jours il y a

Charger plus