Community Profile

Contact

Top 1% contributor

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

23 downloads

2 years ago

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

Solve this!

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

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

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

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

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

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 string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

Load more