문제를 풀었습니다


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

1년 초과 전

제출됨


Zoom Keys
Pan and zoom with simple keystrokes.

1년 초과 전 | 다운로드 수: 2 |

Thumbnail

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


Make a Plot with Functions
Make a plot and test

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

게시됨


Contests, Contests!
Here in New England, autumn is in full swing. The maple leaves are shifting into their best yellows and reds. On MATLAB...

1년 초과 전

Thumbnail

문제를 풀었습니다


Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

1년 초과 전

게시됨


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

1년 초과 전

Thumbnail

문제를 풀었습니다


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

1년 초과 전

게시됨


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

거의 2년 전

Thumbnail

문제를 풀었습니다


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

거의 2년 전

게시됨


Publishing to WordPress
This blog post began its life as a Live Script in MATLAB. I could have started typing into WordPress, but then I wouldn't...

대략 2년 전

Thumbnail

문제를 풀었습니다


Find the complement of a number in binary
Input x is a decimal number and output y is the complement of binary representation of x. For example, x = 10 has the binary ...

대략 2년 전

게시됨


Happy Valentines Day!
I found this lovely algorithmic heart in the comments of an old Walking Randomly post. Research software superstar Mike...

대략 2년 전

Thumbnail

게시됨


Community Q&A – Yair Altman
Yair Altman is a top participant on MATLAB Central, especially within File Exchange.  He is best known for being the...

대략 2년 전

Thumbnail

게시됨


Dr. Maeda Wins With MATLAB!
Some people say it's hard to make predictions. Not true. But making accurate predictions... okay, that's hard. Even so,...

2년 초과 전

Thumbnail

게시됨


Tips ‘n’ Tricks with Chris Armstrong of BAE Systems
As part of my business travel over the years, I've been fortunate to visit the UK several times and meet folks from BAE...

2년 초과 전

Thumbnail

문제를 풀었습니다


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

2년 초과 전

문제를 풀었습니다


frame of the matrix
Given the matrix M, return M without the external frame.

2년 초과 전

문제를 풀었습니다


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

2년 초과 전

게시됨


Mini Hack Contest Analysis
Today we have a guest post from Dave Bulkin. Dave is a developer on the MATLAB Graphics and Charting Team. Dave used to be...

2년 초과 전

Thumbnail

더 보기