Solved

Multivariate polynomials - convert monomial form to array

In <https://www.mathworks.com/matlabcentral/cody/problems/44259-product-of-two-multidimensional-polynomials Problem 44259> I ask...

2달 ago

Solved

Product of two multivariate polynomials

MATLAB <https://www.mathworks.com/help/matlab/polynomials.html has a few functions> for creating and manipulating single-variabl...

2달 ago

Solved

High Precision Square Root (Inspired by Project Euler 80)

Given a positive integer n which is not a perfect square, write a MATLAB script that will calculate the square root of n truncat...

2달 ago

Solved

Determine the number of maximal cliques in an undirected graph

In an undirected graph, a clique is a subset of vertices that are fully connected, i.e. there is an edge between all pairs of ve...

2달 ago

Solved

Path Optimization thru N words : Time Optimization

This is an extension of <http://www.mathworks.com/matlabcentral/cody/problems/196-love-is-an-n-letter-word Cody 196 love> with ...

2달 ago

Solved

BattleShip - Petty Officer (Level 2)

<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/battleships Games Magazine Battleships> is a logic puzzle to find the Fle...

2달 ago

Solved

Battleship - Seaman Level

<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/battleships Games Magazine Battleships> is a logic puzzle to find the Fle...

3달 ago

Solved

Graceful Graph: Wichmann Rulers

This Challenge is to find maximum size Graceful Graphs via Wichmann Rulers for P>13. This Challenge is related to the <http://w...

3달 ago

Solved

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

3달 ago

Solved

Prime Sequences: AP-k Minimum Final Value

Welcome to Fun with Primes. Today we will find the Minimum Final Value AP-k sequences for n_max=3:12 given the primorial and kno...

3달 ago

Solved

Create a Video

Create an avi video of the function surf(sin(2*pi*k/20)*Z,Z) for k=1:100 with an avi "quality" of 5. The standard quality is ...

3달 ago

Solved

All Humans are Created Equal - Pareto Equality

One way or the other two sets of identical types can come out ahead of the other by idea of Pareto equality. Pareto equality b...

3달 ago

Solved

What is Title of Cody Challenge 42?

Given a Cody Challenge number return its Title. *Input:* Cody Challenge Number *Output:* Title of the Cody Challenge ...

3달 ago

Solved

Find the centre of an arc and its radius

Given two points on an arc (x0,y0) and (x1,y1) and the angle between them, alpha. Return the centre of the circle and the rad...

3달 ago

Solved

Is it a mail?

Electronic mail, or email, is a method of exchanging digital messages between people using digital devices such as computers, mo...

3달 ago

Solved

Spin Matrices

The spin of a particle is a fundamental property in quantum physics. We shall inspect below matrix representations of such spin...

3달 ago

Solved

Finding operators in a MATLAB function in a string.

The aim is to find if there is an operator inside a MATLAB function call in a formula. The input is a string and the output is a...

3달 ago

Solved

Game of Nim

The Game of Nim is a famous studied 2 player strategy game. <http://en.wikipedia.org/wiki/Nim> There are 3 heaps, and you...

3달 ago

Solved

Project Euler: Problem 14, Longest Collatz sequence

The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) U...

3달 ago

Solved

Expression or variable?

Test if arguments of the function are all variables (workspace variables names). Return 1 if yes, 0 if no. For example : ...

3달 ago

Solved

Moore-Penrose pseudoinverse of matrix

Find the command for Moore-Penrose pseudoinverse of matrix and solve

3달 ago

Solved

Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.

Given a matrix x, *using loops only* return a matrix y, in which all the zeros have "climbed" up to the top. That is, any zeros ...

3달 ago

Solved

Pascal's Equilateral triangle inside a Matrix!!!

Given a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'. number of row, n = ...

3달 ago

Solved

exactly?

given two strings of numeric expressions such as '1-7/14' and '11/22+0.2^2', return 1 if they are numerically exactly equal othe...

3달 ago

Solved

Kaggle: Reverse Game of Life - Create Isle prior State

<http://www.kaggle.com/c/conway-s-reverse-game-of-life Kaggle's Conway's Reverse Game of Life> contest inspires this Isle Single...

3달 ago

Solved

Fun Race

* Given two unary functions foo and goo. * Check whether foo(0) runs faster than goo(0). * Output 1 if foo is faster, otherwis...

3달 ago

Solved

Lights Out 14 - 5x5, four stages, x moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

3달 ago

Solved

Lights Out 13 - 5x5, three stages, x moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

3달 ago

Solved

Mastermind

We are playing the boardgame mastermind <https://en.wikipedia.org/wiki/Mastermind_(board_game)>. The game master has created a 4...

3달 ago