문제를 풀었습니다

Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

거의 2년 전

문제를 풀었습니다

Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

거의 2년 전

문제를 풀었습니다

Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

거의 2년 전

문제를 풀었습니다

Oh Zero Zero Zero!!!
Hello all, So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...

거의 2년 전

문제를 풀었습니다

Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

거의 2년 전

문제를 풀었습니다

Count consecutive 0's in between values of 1
So you have some vector that contains 1's and 0's, and the goal is to return a vector that gives the number of 0's between each ...

거의 2년 전

문제를 풀었습니다

Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

거의 2년 전

문제를 풀었습니다

Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] is s...

거의 2년 전

문제를 풀었습니다

Mersenne Primes vs. All Primes
A Mersenne prime (M) is a prime number of the form M = 2^p - 1, where p is another prime number. <https://www.mathworks.com/matl...

거의 2년 전

문제를 풀었습니다

Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

거의 2년 전

문제를 풀었습니다

Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

거의 2년 전

문제를 풀었습니다

geometric progression
I've modified my <http://uk.mathworks.com/matlabcentral/cody/problems/2800-arithmetic-progression previous program> so that it n...

거의 2년 전

문제를 풀었습니다

arithmetic progression
I've written a program to generate the first few terms of <https://en.wikipedia.org/wiki/Arithmetic_progression arithmetic progr...

거의 2년 전

문제를 풀었습니다

Largest Geometric Series
Extension of Ned Gulley's wonderful <http://www.mathworks.com/matlabcentral/cody/problems/317 Problem 317>. In a geometric se...

거의 2년 전

문제를 풀었습니다

Find similar sequences
Another problem inspired by a question on the <http://www.mathworks.com/matlabcentral/answers answers> forum. Given a matrix ...

거의 2년 전

문제를 풀었습니다

Generate Square Wave
Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...

거의 2년 전

문제를 풀었습니다

Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

거의 2년 전

문제를 풀었습니다

Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

거의 2년 전

문제를 풀었습니다

Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

거의 2년 전

문제를 풀었습니다

Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

거의 2년 전

문제를 풀었습니다

Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

거의 2년 전

문제를 풀었습니다

Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

거의 2년 전

문제를 풀었습니다

Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

거의 2년 전

문제를 풀었습니다

With apologies to William Blake
Coder Coder, typing fast Sitting at your desk, aghast. What immortal MATLAB script will solve this problem, nice and qu...

거의 2년 전

문제를 풀었습니다

Evened up (or not)
You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

거의 2년 전

문제를 풀었습니다

De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

거의 2년 전

문제를 풀었습니다

Big numbers, repeated least significant digits
This problem builds off of <http://www.mathworks.com/matlabcentral/cody/problems/3077-big-numbers-least-significant-digits/ Prob...

거의 2년 전

문제를 풀었습니다

Big numbers, least significant digits
Given two numbers, x and n, return the last d digits of the number that is calculated by x^n. In all cases, d will be the number...

거의 2년 전

문제를 풀었습니다

Digital Neighbourhood
Given a natural number reorder its digits to create another number, closest to the given one. Examples: * 123 gives 132, ...

거의 2년 전

문제를 풀었습니다

Binary Neighbourhood
Given a natural number reorder its binary form to create another number, closest to the given one. Examples: * 1 gives 2, ...

거의 2년 전