Problema


Fill a rectangle with 1x1 and 2x2 tiles
A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways: A 3x3 rectangle can be filled with 1x1 and 2x2 tiles in f...

más de 4 años hace | 2 | 21 solvers

Resuelto


RandomProblem13-Cube a number
Cube a number

más de 4 años hace

Resuelto


Random Problem12- Squaring a number
Square the number

más de 4 años hace

Resuelto


Multiply by 3
Multipy the thingy by 3

más de 4 años hace

Resuelto


RandomProblem32
Solve for the answer

más de 4 años hace

Resuelto


RandomProblem33
Solve for the answer.

más de 4 años hace

Resuelto


Chess performance
After Problems <http://www.mathworks.com/matlabcentral/cody/problems/3054-chess-elo-rating-system/ 3054> and <http://www.mathwor...

más de 4 años hace

Resuelto


Two functions (to be sure)
I want to compute the number of odd/even numbers in an array. But I want the results by two different functions. Example: ...

más de 4 años hace

Resuelto


Get a Fibonacci number's index.
*N.B.* For the purpose of this exercise, the first Fibonacci number is 1, and the second is 2; that is, |fib(1) = 1| and |fib(2)...

más de 4 años hace

Resuelto


Matlab Basics II - Operations and Matrix Dimensions
Write a function that takes two inputs, a & b, and outputs the sum and product of the two matrices. The matrices have OPPOSITE d...

más de 4 años hace

Resuelto


Is the test point on the line segment?
Given the [x,y,z] coordinates for the three points pa, pb, and pc, return true if the test point pc is on the line segment with ...

más de 4 años hace

Resuelto


Square Rooting a Number
This MATLAB Cody exercise requires you to take a number x, square root it, and get y

más de 4 años hace

Resuelto


prime consecutive sums
Create a number sequence of 1 to n, such that the sums of every two consecutive numbers are all primes. E.g. if n = 5, you may ...

más de 4 años hace

Resuelto


Play Tic-Tac-Toe: Easy Bots
Interactive Tic-Tac-Toe game versus the test suite algorithms. The contest will be 50 games of Computer first and 50 games of...

más de 4 años hace

Resuelto


Uranium–Lead Dating

más de 4 años hace

Resuelto


n-th digit of write-down all numbers
Write down number as 123456789101112131415161718192021222324252627282930... what's the n-th digit? input n and get the digit.

más de 4 años hace

Resuelto


Apply a function array to an array of numbers
It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

más de 4 años hace

Resuelto


First use of arrayfun() and anonymous function @(x)
Create an anonymous function using @(x) for a parabola equation for the given coefficients stored in s with s(1)x2 + s(2)x + s(...

más de 4 años hace

Resuelto


Count of Unique Elements of a Vector
Count the number of times each unique element appears in a vector. Example: Input x = [2 9 1 2 4 9 2] Output y = [1 1; 2 3; 4...

más de 4 años hace

Resuelto


Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.

más de 4 años hace

Resuelto


Angle difference between Hour Hand and Minute Hand of clock
*Calculate the difference of angles between Hour hand and Minute hand of clock* E.g. 1) At 12:00 Angle Difference = 0 deg...

más de 4 años hace

Resuelto


Dispatch and collect
Write a function that dispatches the single argument _x_ to multiple function handles (varargin) and concatenates vertically the...

más de 4 años hace

Resuelto


LocateMembership | Membership of Matrix in another matrix
Let a and b be given by a = [ 2 1 1 1 1 2 1 1 1 1 2 1 1 1 1 2 4 0 0 0 ] b = [ 2 1 ...

más de 4 años hace

Resuelto


Alternative Scoring. Create an incremental spiral.
This problem is created to test an alternative Cody scoring system. It is based on the current one, but few changes are introduc...

más de 4 años hace

Resuelto


Convert a grayscale image into RGB colour format, preserving data type
In the Image Processing Toolbox, MATLAB provides rgb2gray to convert a 3 channel color image into a 1 channel intensity...

más de 4 años hace

Resuelto


Text Processing - New
Derived from problem 2440. A string containing several sentences are given as input. If any sentence contains the word 'great...

más de 4 años hace

Resuelto


Best Square-Shaped Grid for Subplot
If you have x number of plots, find the optimum 'm' number of rows and 'n' number of columns for subplotting where the overall f...

más de 4 años hace

Resuelto


Sum of digit range
Example: If A is n1, and B is n2 digit positive numbers. A*B's digit range will be [c d] (c = min & d = max). Then return ...

más de 4 años hace

Resuelto


I want eval
A valid MATLAB statement containing a definition of a vector is passed as a string S. Determine the length of the vector. Inp...

más de 4 años hace

Resuelto


Tic Tac Toe Solver
Create a function that checks n number of tic tac toe boards housed in a 3x3xn matrix where the x's are represented as 1's (and ...

más de 4 años hace

Cargar más