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

environ 2 ans 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...

environ 2 ans 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...

presque 3 ans 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...

presque 3 ans 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...

presque 7 ans ago | 1

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

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

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

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

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

plus de 7 ans ago

Solved

How many monitors are connected ?

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

plus de 7 ans 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".

plus de 7 ans 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...

plus de 7 ans 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...

plus de 7 ans ago | 0

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

plus de 7 ans ago | 0

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

plus de 7 ans 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...

presque 8 ans 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 ...

presque 8 ans 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...

presque 8 ans 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...

presque 8 ans 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...

presque 8 ans ago

Solved

Determine if input is odd

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

presque 8 ans 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...

presque 8 ans 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 ...

presque 8 ans 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...

presque 8 ans ago | 0

Solved

Pangrams!

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

presque 8 ans 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...

presque 8 ans 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...

presque 8 ans ago