Content Feed
문제를 풀었습니다
Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...
약 2달 전
문제를 풀었습니다
Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...
2달 전
문제를 풀었습니다
Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...
2달 전
문제를 풀었습니다
Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>
2달 전
문제를 풀었습니다
Next Tribonacci Number
The "Tribonacci" sequence is an extension of the idea of the Fibonacci sequence: That is, each new term is the sum of the thr...
2달 전
제출됨
Private Cody Leaderboard
This code creates a private leaderboard for Cody players.
4달 전 | 다운로드 수: 1 |

게시됨
Cody Meets Cricket: Who’s Your Bunny?
Any cricketers out there? If you like cricket and coding in MATLAB (and who doesn't?), then allow me to direct your...
5달 전

게시됨
2022 Mini Hack Content Analysis
Today, once again, I am delighted to introduce guest blogger Dave Bulkin. You may remember that Dave blogged in this space...
5달 전

문제를 풀었습니다
Cricket - Most Frequent Bowler-Batter Wicket Combinations
Given a table representing all wickets taken in a particular set of matches, return a table of the bowler-batter pairs that occu...
5달 전
문제를 풀었습니다
Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n. Fun note: technically it...
5달 전
문제를 풀었습니다
Extract the Acrostic Message
An acrostic cipher is a way of embedding one message within another by taking the first (or last) word of each line. Given a str...
5달 전
문제를 풀었습니다
Boustrophedon
Given a vector v and a positive integer n, return an m-by-n matrix containing the elements of v row-wise, alternating left-to-ri...
5달 전
문제를 풀었습니다
Generate Tribonacci Sequence
The "Tribonacci" sequence is an extension of the idea of the Fibonacci sequence: That is, each new term is the sum of the thr...
5달 전
문제를 풀었습니다
Where the Four Corners Am I?
The "Four Corners" region of the US is where Colorado, Utah, Arizona, and New Mexico all meet - the only place where four states...
5달 전
문제를 풀었습니다
Generate Pascal's Triangle Matrix
Pascal's triangle is an arrangement of numbers where each value is the sum of the values adjacent to it in the previous row: ...
5달 전
문제를 풀었습니다
Jack O'Lantern
If visualized correctly, the data contained in the matrix A will look like a jack-o'-lantern. Create a function that will visu...
5달 전
문제를 풀었습니다
Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...
5달 전
문제를 풀었습니다
Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...
6달 전
문제를 풀었습니다
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...
6달 전
문제를 풀었습니다
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...
6달 전
문제를 풀었습니다
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...
6달 전
게시됨
Contests, Contests!
Here in New England, autumn is in full swing. The maple leaves are shifting into their best yellows and reds. On MATLAB...
6달 전

문제를 풀었습니다
Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...
6달 전
게시됨
New Features: How Do You Find the Good Stuff?
If I give you something but you never get the news, did I really give it to you? This happens all the time with MATLAB...
6달 전

문제를 풀었습니다
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...
8달 전
게시됨
Home Made Magnetic Resonance Imaging
Listen in as Yuki Kamatani interviews a man who built his own MRI! Hi, I'm Yuki Kamatani, an application engineer in our...
9달 전

문제를 풀었습니다
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...
9달 전