
Mark McBroom
I am an Application Engineering Manager at MathWorks.
Content Feed
문제를 풀었습니다
Poker Series 01: isStraightFlush
The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is to...
7개월 전
문제를 풀었습니다
Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...
7개월 전
문제를 풀었습니다
Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...
7개월 전
문제를 풀었습니다
Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...
7개월 전
문제를 풀었습니다
Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...
7개월 전
문제를 풀었습니다
Code breaker, Part III: Operation Xiangliu
You have been tasked with decoding several batches of coded messages that have been intercepted. Based on previous intellig...
1년 초과 전
문제를 풀었습니다
Code breaker, Part II: Operation Orthos
You have been tasked with decoding several batches of coded messages that have been intercepted. Based on previous intellig...
1년 초과 전
문제를 풀었습니다
Scrabble Scores - 13
This problem integrates components of <https://www.mathworks.com/matlabcentral/cody/problems/3084-scrabble-scores-11 Scrabble Sc...
1년 초과 전
문제를 풀었습니다
Scrabble Scores - 12
This problem builds directly off of <https://www.mathworks.com/matlabcentral/cody/problems/3082-scrabble-scores-10 Scrabble Scor...
1년 초과 전
문제를 풀었습니다
Scrabble Scores - 11
This problem builds on the previous problem, wherein you were provided a letter of an existing word on the board and from which ...
1년 초과 전
문제를 풀었습니다
Scrabble Scores - 10
This problem is very similar to the previous problem. Here, you are provided a letter of an existing word on the board from whic...
1년 초과 전
문제를 풀었습니다
Scrabble Scores - 9
After developing a sophisticated Scrabble scoring routine, it's time to write an optimization routine for single-word scoring. T...
1년 초과 전
문제를 풀었습니다
Scrabble Scores - 8
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
1년 초과 전
문제를 풀었습니다
Scrabble Scores - 7
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
1년 초과 전
문제를 풀었습니다
Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...
2년 초과 전
문제를 풀었습니다
Find state names that start with the letter N
Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...
2년 초과 전
문제를 풀었습니다
Scrabble Scores - 6
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
2년 초과 전
문제를 풀었습니다
Scrabble Scores - 5
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
2년 초과 전
문제를 풀었습니다
Scrabble Scores - 4
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
2년 초과 전
문제를 풀었습니다
Scrabble Scores - 3
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...
2년 초과 전
문제를 풀었습니다
Reverse Boggle
*Description* In the classic Parker Brothers game <http://en.wikipedia.org/wiki/Boggle Boggle>, players find words from a 4x4...
2년 초과 전
문제를 풀었습니다
Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...
2년 초과 전
문제를 풀었습니다
Integer sequence - 2 : Kolakoski sequence
Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.
2년 초과 전
문제를 풀었습니다
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...
2년 초과 전
문제를 풀었습니다
"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...
2년 초과 전
문제를 풀었습니다
Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....
2년 초과 전
문제를 풀었습니다
Golomb's self-describing sequence (based on Euler 341)
The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...
2년 초과 전
문제를 풀었습니다
Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...
2년 초과 전
문제를 풀었습니다
Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...
2년 초과 전
문제를 풀었습니다
Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....
2년 초과 전