Solved

It's going down. We're finding simbers!

This problem is inspired by Project Euler 520: Simbers. "We define a simber to be a positive integer in which any odd digit, ...

1 dag ago

Solved

Pandigital Factors (Based on Euler 491)

A Pandigital Number is a number containing all of the digits from 0-9 inclusive, with the added stipulation that it does not hav...

1 dag ago

Solved

Odd elimination

Inspired by Project Euler problem #539 You'll be given a vector from 1 to n; Going from left to right, remove the first n...

1 dag ago

Solved

Pseudo Square Root (Inspired by Project Euler 266)

Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

2 dagen ago

Solved

Bouncy numbers

Inspired by Project Euler n°112. * * Working from left-to-right if no digit is exceeded by the digit to its left it is call...

2 dagen ago

Solved

Project Euler: Problem 11, Largest product in a grid

What is the greatest product of _k_ adjacent numbers in the same direction (up, down, left, right, or diagonally) in a _n×n_ gri...

2 dagen ago

Solved

Large Sum (inspired by Project Euler 13)

Your function will be provided an arbitrary number of numbers of arbitrary sizes as a cell array of strings. Some numbers will b...

2 dagen ago

Solved

Consecutive Equation Times (of the day)

Many times throughout the day can represent mathematical equations. In this problem, we focus on the largest consecutive run of ...

2 dagen ago

Solved

Equation Times (of the day)

Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

2 dagen ago

Solved

Create a square matrix with given conditions

Create a square matrix, M, which should be populated as follows: M = [ n^2 n * (n-1) n * (n-2) ... n * 2 n * ...

2 dagen ago

Solved

create a square matrix

create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

2 dagen ago

Solved

Diagonal Pattern

For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

2 dagen ago

Solved

Make a rainbow matrix (follow-up to checkerboard matrix)

Given an integer n, make an n-by-n matrix as shown below. The a(1,1) should be 0. As we move away from the top-left, the number ...

2 dagen ago

Solved

Union Jack Matrix

Create a matrix of odd dimensions that has ones on both diagonals and dividing the matrix into 4 quadrants, resembling a square ...

2 dagen ago

Solved

Tent matrix

Create an n x n matrix that resembles one kind of tent. The variable n is provided to the function and will be an odd number. As...

2 dagen ago

Solved

Vandermonde Matrix

Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column i...

2 dagen ago

Solved

Big numbers, least significant digits

Given two numbers, x and n, return the last d digits of the number that is calculated by x^n. In all cases, d will be the number...

2 dagen ago

Solved

Fill the Matrix - 2

Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the me...

2 dagen ago

Solved

Replace secondary diagonal elements of a square array

Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

2 dagen ago

Solved

MatCAT - Reconstruct X from Its X-rays

Consider a matrix x x = [ 1 2 0 0 5 0 3 0 8 ] If we sum x along the rows we get row_sums = [3 5 11] ...

2 dagen ago

Solved

Matrix to 3-Column Matrix

Consider a matrix *A* such as A = [1 2 3 3 4 5 6; 2 3 4 5 6 7 8]; Can you convert this matrix to a three-column ...

2 dagen ago

Solved

Vector to 3-Column Matrix

Consider a vector *A* such as A = [1 2 3 3 4 5 6] Can you convert this vector to a three-column matrix like this: ...

2 dagen ago

Solved

Find the Final State of an Abelian Sandpile

Let us define an <http://nautil.us/issue/23/dominoes/the-amazing-autotuning-sandpile Abelian sand pile> as a matrix that is only...

3 dagen ago

Solved

Maximum of each diagonal

The well-known <http://www.mathworks.com/help/matlab/ref/max.html max> function can operate along either the rows or the columns...

3 dagen ago

Solved

Check if a matrix is a palindrome in all directions

Check if a matrix is a palindrome both vertically and horizontally. You function will return *true* for |[1,2,1]| or |[2,7,2;...

3 dagen ago

Solved

Produce the following matrix

Produce the following matrix x = [2 3 4] y_correct = [1 1/2 1/3; 2 1 1/4; 3 4 1];

3 dagen ago

Solved

Right Triangle Side Lengths (Inspired by Project Euler Problem 39)

If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

3 dagen ago

Solved

Pandigital number n°2 (Inspired by Project Euler 32)

After <http://www.mathworks.com/matlabcentral/cody/problems/2319 Problem 2319>. An n-digit number is pandigital if it makes u...

3 dagen ago

Solved

Pandigital number n°1 (Inspired by Project Euler 32)

A little warm-up to begin... An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For ex...

3 dagen ago

Solved

I've got the power! (Inspired by Project Euler problem 29)

Consider all integer combinations of a^b and b^a for the integer values 2 ≤ a ≤ 4 and 2 ≤ b ≤ 5: 2^2=4, 2^3=8, 2^4=16,...

3 dagen ago