**Statistics**

RANK**429**

of 264,972

REPUTATION**158**

CONTRIBUTIONS

**5** Questions

**24** Answers

ANSWER ACCEPTANCE **
100.0%
**

VOTES RECEIVED**71**

RANK**661** of 18,104

REPUTATION**2,560**

AVERAGE RATING**3.80**

CONTRIBUTIONS**9** Files

DOWNLOADS **36**

ALL TIME DOWNLOADS**24119**

CONTRIBUTIONS**187 Posts**

CONTRIBUTIONS**2** Public Channels

AVERAGE RATING**68**

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Find a Pythagorean triple

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

1 month ago

Submitted

Private Cody Leaderboard

This code creates a private leaderboard for Cody players.

3 months ago | 2 downloads |

Solved

Given a matrix, swap the 2nd & 3rd columns

If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

3 months ago

Solved

Find the complement of a number in binary

Input x is a decimal number and output y is the complement of binary representation of x. For example, x = 10 has the binary ...

7 months ago

Solved

Replace Nonzero Numbers with 1

Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

9 months ago

Solved

subtract central cross

Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

9 months ago

Solved

Rotate a Matrix

Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

1 year ago

Solved

matrix zigzag

Unfold a 2-D matrix to a 1-D array in zig-zag order, e.g., for matrix [ 1 2 3 ; 4 5 6 ; 7 8 9 ] the resulting 1-...

1 year ago

Published

Update Heroes: Evergreen Contributions to the File Exchange

File Exchange developer Randy Souza (you've heard of Souza's Law, right?) was looking at some file updates coming through...

1 year ago

Published

On the Importance of Software to Research

This week's post is by Mike Croucher. Mike is a member of the Customer Success Engineering team in the UK, working with...

1 year ago

Published

Cody News: Test That Code Before You Submit It!

See this? This is so cool. What you're looking at is the new Scratch Pad area for Cody. It will make playing Cody more...

1 year ago

Solved

Neither minima nor maxima

Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

1 year ago

Published

Community Q&A – Akrem Hadji

Akrem Hadji is a top contributor to Cody. Here is a Q&A I did with Akrem who is a Telecommunications Engineer in...

1 year ago

Solved

Longest Sequence of NaNs

In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

1 year ago

Published

Live Editor in MATLAB Mobile

The Live Editor combines code, output, and formatted text in a single executable notebook. Last year, we introduced this...

1 year ago

Published

Happy Valentines Day!

What to do? It's nearly February 14th, and what, oh what will you get your sweet one? Your very own osculating curve? The...

1 year ago

Published

MATLAB Drive and British Coal

The other day I received this email from my friend Jos. Very thoughtful of him! After a recent meeting, we were...

1 year ago

Published

Virtual Workshops with Black Girls Code and MissionSAFE

Guest bloggers Ishaani, a MathWorks UX Specialist, and Vidya Gopalakrishnan, a MathWorks Senior Technical Writer, bring you...

1 year ago

Published

How Long Is a Winter’s Day?

Happy December! The days sure seem longer in the winter. Of course, there are fewer hours of daylight. But the actual span...

2 years ago

Solved

Fix the last element of a cell array

Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

2 years ago

Solved

Convert a numerical matrix into a cell array of strings

Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

2 years ago

Solved

Proper Factors

Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...

2 years ago

Solved

QWERTY coordinates

Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

2 years ago

Solved

QWERTY Shift Code Decoder

Decode a string encoded using the QWERTY shift code. QWERTY shift code is where the message was touch typed but with an offse...

2 years ago

Solved

Word Distance - Sum

Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

2 years ago

Solved

Count letters occurence in text, specific to words with a given length.

Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of th...

2 years ago

Solved

Data decompression

A chunk of data is to be 'decompressed'. Input: * compressed: a row vector of uint8 values. This is the compressed data. ...

2 years ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

2 years ago

Published

Savitha Talks About Kubernetes

I’m happy this week to be talking to a fellow MathWorker: Savitha Raghunathan. Why, you may ask, should I use the MATLAB...

2 years ago