Community Profile

Contact

Top 1% contributor

A driver framework for Zaber T-LSM compatible translation stages (firmware 5.29, 10.07.2013).

24 downloads

2 years ago

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

Solve this!

4 months ago

Given a and b, return the sum a+b in c.

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

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

9 months ago

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.

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

1 year ago

you just discovered its circumference, that is the input.

Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

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 a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

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 a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

x and y are input vectors, d is a number and contains their dot product

given x ratio of pressure, find corresponding y dB

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

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

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

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

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

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