Solved


A Nedlish Country Garden - Check for Valid Arrangement
Nedland is famous for its stately gardens, which typically have a centerpiece of a square grid, with certain squares featuring a...

5 months ago

Solved


Average Number of Moves for the Royal Game of Err
Bored of tedious court assemblies, King Neduchadneddar the Procrastinator has found a cunning way to keep his advisors, councilo...

5 months ago

Solved


Transition Matrix for the Royal Game of Err
Bored of tedious court assemblies, King Neduchadneddar the Procrastinator has found a cunning way to keep his advisors, councilo...

5 months ago

Solved


Convert Decimal to Hexavigesimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

5 months ago

Solved


Convert Hexavigesimal to Decimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

5 months ago

Solved


Leaderboard for the Nedball World Cup
At the upcoming inaugural Nedball World Cup, organizers need to track who is in the lead for the coveted Golden Toeplitz trophy,...

5 months ago

Solved


Government of the Neds, by the Neds, for the Neds - Distribute the Nedsburg City Councilors
The city of Nedsburg consists of several islands, the number of which changes regularly, due to tectonic forces, shoddy civil en...

5 months ago

Solved


Square area to triangle area
Given the area, A, of a square with side length, c, if a right angle triangle has the same area A and the hypothenuse length 2c ...

5 months ago

Solved


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

5 months ago

Solved


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

5 months ago

Solved


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

5 months ago

Solved


Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

5 months ago

Solved


Muphry's Law of MATLAB
You're running some simple multiplication problems through MATLAB for error checking purposes, but nothing seems to come up with...

5 months ago

Solved


Radioactive Decay Chain
A radioactive decay chain consists of a series of nuclides, each decaying into the next. Suppose we have a chain of N isotopes:...

5 months ago

Solved


Mandelbrot Set Generator Class
Create a class Mandelbrot that computes the Mandelbrot set on a given complex plane window. The Mandelbrot set is defined by it...

5 months ago

Solved


MinMax
* x=[2 4 3 1 6 4 6] * output , y=[1 6 2 4 3] here,y(1) is the minimum of x, y(2) is the maximum of x, y(3) is the 2nd mini...

5 months ago

Solved


Four digit number ABCD reversal
write a MATLAB function to find the four-digit number ABCD when multiplied by 4 returns DCBA. The function takes an input x=4.

5 months ago

Solved


Enclosure Matrix
The problem gives you a positive integer n. You need to create a matrix consisting of n layers of natural numbers; the outermost...

5 months ago

Solved


Determine when iterations of phi(psi(x)) repeat
Cody Problem 656 introduced the Euler totient function , which counts the number of integers smaller than that are relatively...

5 months ago

Solved


Moving Movsum
Given a vector (x) and a window (y), calculate the sum s(k) corresponding to k-y(k)+1:k values of x %%Example 1 x = [1 2 3 4...

5 months ago

Solved


Barnes G-Function
Evaluate the Barnes G-Function at a given value. %Example 1 in = 1; out = 1; %Example 1 in = 4; out = 2; Only vecto...

5 months ago

Solved


Compute the Dedekind psi function
Write a function to compute the Dedekind psi function. The values for n = 1, 2, 3, 4, 5, and 6 are 1, 3, 4, 6, 6, and 12.

5 months ago

Solved


CumulativeCumulative Count
This is a sequel to Problem #60994 - Cumulative Count. Given a row vector of integers with repeating values - here not all re...

5 months ago

Solved


Breaking up a chocolate bar
You've got a chocolate bar of size , and you want to break it up into bite-sized () pieces. How many steps are required to do th...

5 months ago

Solved


R2012b atan in Degrees
Return in degrees the atan result of inputs for all four quadrants. *Examples:* [x, y] Degrees 1 0 0 1 1 ...

5 months ago

Solved


Array GCD
* Find Greatest Common Divisor in a given array * Function Template: function ans = arraygcd(a) % a=[45 15 200 ...

5 months ago

Solved


Vector LCM
Find Least Common Multiple of a given vector. Need general solution as the test suite will be expanded. Function Template: fu...

5 months ago

Solved


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

5 months ago

Solved


How many monitors are connected ?
How to obtain the numbers of monitors connected to your computer ?

5 months ago

Solved


Accumulate Cells
Given a combining function, a cell array, and an initial value, accumulate the result. For example, accumcell(@plus,{1,...

5 months ago

Load more