Community Profile

Contact

Top 1% contributor

44 downloads

28 days ago

It's great that your regexp problem was solved. For future questions, there are several items on the File Exchange that may hel...

1421 views

Responded 2 years ago

Create new file from template.

12 downloads

2 years ago

6 downloads

Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

Solve this!

6 months ago

Just like Matthew's problem <http://www.mathworks.com/matlabcentral/cody/problems/2793 2793> and Edward's problem <http://www.ma...

Return any number (integer between 0 and 65535) You will pass this problem if you are the *second* person to choose that nu...

7 months ago

Given a square matrix A, compute the <http://en.wikipedia.org/wiki/Determinant determinant> of A. Note that you may not use t...

Related to Problems 1646 and 2650, but bigger. Technically, all you need to do for this Cody problem is input a 5x5 matrix conta...

Complete the function by assigning minReal with the smallest positive double precision floating-point number, and maxReal with t...

9 months ago

Write a function that dispatches the single argument _x_ to multiple function handles (varargin) and concatenates vertically the...

Find out value of polynomial at different value. Example p(s) = s + 8 For s=0, value is 8.

10 months ago

Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

This problem is created to test an alternative Cody scoring system. It is based on the current one, but few changes are introduc...

For a given string sentence, determine if the string word 'please' is present or not. If so, return the string 'OK', else return...

Evaluate the <http://en.wikipedia.org/wiki/Gamma_function/ Gamma Function>. Gamma_val(0) = Inf Gamma_val(1.2) = 0.9182

Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...

A polite number is ans integer that sums of two or more consecutive nonnegative integers. Politeness of a positive integer is a...

A polite number is an integer that sums of at least two consecutive positive integers. For example _7 = 3+4_ so 7 is a polite...

Given inputs of (1) a row vector and (2) a digit, identify the elements of that vector that contain the digit, remove them, and ...

11 months ago

Two strings are given. Find the longest common substring between them. The substring characters need not be adjacent. They, howe...

Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

Inspired by a question on the answer forum: You are given a matrix of 8-bit integers which encodes a genome. Each integer can...

Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

12 months ago

Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

An extension to problems <http://www.mathworks.com/matlabcentral/cody/problems/2451-block-x3-version-1/ 2451> (by me) and <http:...

Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

From Wikipedia: _A Dudeney number is a positive integer that is a perfect cube such that the sum of its decimal digits is equa...

if input n =1, generate a matrix y = [1]

A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

Load more