Community Profile

Contact

Top 1% contributor

If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

Solve this!

3 years ago

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be plac...

If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

4 years ago

*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

Imagine a square tile with four numbers on it, one on each edge. We will call these edges north, east, south, and west. If th...

You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...

Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

<http://www.mathworks.com/matlabcentral/cody/problems/18-bullseye-matrix Problem 18> asks to create a bullseye matrix like this:...

Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

Given a matrix A that represents the state of <http://en.wikipedia.org/wiki/Conway's_Game_of_Life Conway's game of Life> at one ...

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

Given two strings s1 and s2, create a new string s3 which is as short as possible and contains both strings. If s1 = [1 2...

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries