I'm a Senior UX Specialist here at MathWorks, supporting the MATLAB Language teams. This means any coding I do is strictly amateur stuff, and my comments should NOT be considered the "voice of the MathWorks".

In a past life, I got a doctorate analyzing how people talk and work together via computers, and have worked on planning- and AI-related projects for various government sponsors.

Professional Interests: Programming language design and environments; ethnographic analysis; data visualization; NLP; audio processing; image processing.

Hobbies: writing science fiction; role-playing; wargaming; music.

Solved

"Cody" * 5 == "CodyCodyCodyCodyCody"

*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...

3 years ago

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

3 years ago

Solved

adding huge numbers

Write function called huge_add that adds together two positive integers of any length specified as char vectors using decimal n...

4 years ago

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

4 years ago

Problem

Create a recurrence matrix for a vector of data

In <https://en.wikipedia.org/wiki/Conversation_analysis conversation analysis>, it's often useful to track the contributions fro...

8 years ago | 2 | 14 solvers

Solved

Create a recurrence matrix for a vector of data

In <https://en.wikipedia.org/wiki/Conversation_analysis conversation analysis>, it's often useful to track the contributions fro...

8 years ago

Solved

Swap the first and last columns

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

8 years ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

8 years ago

Question

Shifting a multidimensional matrix

I'm trying to offset a matrix by a certain distance, like dragging an image partially out of frame. The 'new' area gets fill...

8 years ago | 4 answers | 0

Solved

Sum all integers from 1 to 2^n

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.

8 years ago

Solved

How many monitors are connected ?

How to obtain the numbers of monitors connected to your computer ?

8 years ago

Solved

The Hitchhiker's Guide to MATLAB

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

9 years ago

Solved

Functional inputs

Return an n-dimensional array whose elements are the results of a function over a set of vectors. The (i,j,k, ...n)th element...

9 years ago

Problem

Functional inputs

Return an n-dimensional array whose elements are the results of a function over a set of vectors. The (i,j,k, ...n)th element...

9 years ago | 1 | 14 solvers

Problem

"Look and say" sequence

What's the next number in this sequence? * [0] * [1 0] * [1 1 1 0] * [3 1 1 0] * [1 3 2 1 1 0] This a variant on the w...

9 years ago | 1 | 151 solvers

Question

How can I show a time/date stamp in the prompt?

I am recording (using diary) some work in MATLAB and I want to see when each command was executed. Is there a way to change the ...

9 years ago | 1 answer | 0

Solved

Is my wife right? Now with even more wrong husband

Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

9 years ago

Solved

The Goldbach Conjecture

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

9 years ago

Solved

Most nonzero elements in row

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 years ago

Solved

Create times-tables

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

9 years ago

Solved

Determine whether a vector is monotonically increasing

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

9 years ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

9 years ago

Solved

Make a checkerboard matrix

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

9 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

9 years ago

Problem

Construct a string from letters and counts

Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

9 years ago | 1 | 129 solvers

Solved

Pangrams!

A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

9 years ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

9 years ago

Solved

Construct a string from letters and counts

Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

9 years ago