Community Profile

Alex Feinman

MathWorks

39 total contributions since 2012

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.

View details...

Contributions in
View by

Solved

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

etwa 3 Jahre 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...

etwa 3 Jahre ago

Solved

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

fast 4 Jahre 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...

fast 4 Jahre 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...

etwa 8 Jahre 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...

etwa 8 Jahre 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...

etwa 8 Jahre ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

mehr als 8 Jahre 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 ...

mehr als 8 Jahre 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...

mehr als 8 Jahre ago | 4 answers | 0

4

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.

mehr als 8 Jahre ago

Solved

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

mehr als 8 Jahre 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".

mehr als 8 Jahre 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...

mehr als 8 Jahre 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...

mehr als 8 Jahre 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...

fast 9 Jahre ago | 1 | 150 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 ...

fast 9 Jahre ago | 1 answer | 0

1

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

fast 9 Jahre 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 ...

fast 9 Jahre ago

Solved

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

fast 9 Jahre 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...

fast 9 Jahre 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...

fast 9 Jahre 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...

fast 9 Jahre ago

Solved

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

fast 9 Jahre 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...

fast 9 Jahre 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 ...

fast 9 Jahre 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...

fast 9 Jahre ago | 1 | 128 solvers

Solved

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

fast 9 Jahre 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...

fast 9 Jahre 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...

fast 9 Jahre ago