A résolu

Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

environ un mois il y a

A résolu

Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

environ un mois il y a

A résolu

Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

environ un mois il y a

A résolu

Cumulative maximum of an array
Find the cumulative maximum of an array without using the built-in function cummax (and a few others). Your function should act ...

environ un mois il y a

A résolu

Cantor counting
Find the nth cantor's rational number. the sequence is given below in the link. Sequence: 1/1,1/2,2/1,3/1,2/2,1/3,1/4... ... .....

7 mois il y a

A résolu

Connect Four - 02
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45354-connect-four-01> In addition to previous proble...

7 mois il y a

A résolu

find location of indexes
Given a vector with integer values. Find the edge location of the stream of same value. For example: A=[0 0 0 1 1 1 1 2 2 ...

7 mois il y a

A résolu

Find the Pattern 3

7 mois il y a

A résolu

Sum multiples

7 mois il y a

A résolu

convert binary string to vector!!!

7 mois il y a

A résolu

Matrix operation

7 mois il y a

A résolu

String Logic 6
Examples: 'CAT' --> 216 'DOG' --> 218 'ROSY' --> 333 'MATLAB' --> 433 'TRUST' --> 418 'MOSTLY' --> 488

7 mois il y a

A résolu

String Logic 3
Example: 'CAT' --> 'RPI' 'DOG' --> 'SDV' 'MATLAB' --> 'BPIAPQ' 'ROSY' --> 'GDHN' 'TRUST' --> 'IGJHI' 'MOSTLY' --> 'BDHI...

7 mois il y a

A résolu

String Logic 4
Example: 'CAT' --> 'IGZ' 'DOG' --> 'JUM' 'MATLAB' --> 'SGZRGH' 'ROSY' --> 'XUYE' 'TRUST' --> 'ZXAYZ' 'MOSTLY' --> 'SUYZ...

7 mois il y a

A résolu

String Logic 5
Example: 'CAT' --> 'TAC' 'DOG' --> 'GOD' 'MATLAB' --> 'BALTAM' 'ROSY' --> 'YSOR' 'TRUST' --> 'TSURT' 'MOSTLY' --> 'YLTS...

7 mois il y a

A résolu

Remove Upper Case Letters
Example Matlab --> atlab proBlem --> prolem Enter --> nter

7 mois il y a

A résolu

Swap Characters of a Single Word
Description: In the given input word, convert the lower case to upper case and vice versa. A to a, a to A ... Example: 'Matl...

7 mois il y a

A résolu

PACMAT - G03 Ghosts use minimum path to PACMAT; 3 Lives
The Classic PACMAN game brought to Cody. PACMAT requires clearing the board of Yellow Dots while not bumping into the wanderi...

7 mois il y a

A résolu

Connect Four - 01
Connect four is a two player board game. <https://en.wikipedia.org/wiki/Connect_Four> Given a complete connect-four board,...

7 mois il y a

A résolu

Castling-01
Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...

7 mois il y a

A résolu

Area of the yellow shaded region

7 mois il y a

A résolu

STOP that car!!!
The maximum allowed speed for this road is 100. Find the cars that didn't observe the speed limit Arrest and fine them!!!

7 mois il y a

A résolu

Random Problem14 - Multiply a vector by a scalar of 2
Multiply a vector by a scalar of 2

7 mois il y a

A résolu

RandomProblem13-Cube a number
Cube a number

7 mois il y a

A résolu

Random Problem12- Squaring a number
Square the number

7 mois il y a

A résolu

Get the n-th rand number with given seed
Given seed s, return the n-th rand number using rand(). Round the answer with 4 digits. n is a postive integer.

7 mois il y a

A résolu

Height of a 3D Pyramid
If a pyramid is made with one(1). What will be the height of the pyramid of square shaped base(n*n)? where input is n.

7 mois il y a

A résolu

Determine the Result of a Move in Reversi
Note: This is closely related to <http://www.mathworks.com/matlabcentral/cody/problems/2538-find-the-next-legal-move-in-reversi ...

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

7 mois il y a