Community Profile

Contact

Let's do this, MATLAB Professional Interests: math

Top 1% contributor

Write a function that computes the volume of a cube. The function should be able to accept three inputs: the length, width, and...

Solve this!

2

4 years ago

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

3 years ago

Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

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

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

given x ratio of pressure, find corresponding y dB

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

Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...

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

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

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

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

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

For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

max 15th place after the decimal point is ok for now

Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

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

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

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

Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

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

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

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

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

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

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

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