Community Profile

Contact

Top 1% contributor

CTRL+R is the shortcut

accepted

0

Answered 3 years ago

Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

Solve this!

2 years ago

The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

Given a vector x, the output y should equal the length of x.

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provide...

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

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

3 years ago

Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

1:3 -> 0; 3:5 -> 6

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:

See all countries