문제를 풀었습니다


Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

5년 초과 전

문제를 풀었습니다


Path calculation with polynomials
Let a vector x be the input to our function. 1. If a value of an input vector element x is lower than 0, set this value to 0....

5년 초과 전

문제를 풀었습니다


Find maximum value of a curve
Two vectors shall be already defined: - Input vector x (e.g. x = 0:1:10) - Result vector y (e.g. y = sin(x)) Create a n...

5년 초과 전

문제를 풀었습니다


Calculate trends in time series
Create a new variable that has trends in input series. If _t+1_ is bigger than or equal to _t_, than trend in _t_ will be 1, oth...

5년 초과 전

문제를 풀었습니다


average for three points
how to calculate the average (for each three values of y) y=[2 3 5 3 4 2 3 4 5 3 2 7 8 6 5 5 4 3 3 3 2 ] you ...

5년 초과 전

문제를 풀었습니다


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

5년 초과 전

문제를 풀었습니다


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

5년 초과 전

문제를 풀었습니다


Find the index of nth maximum of a row vector of real numbers
Given a vector of real numbers x, find the index idx of _n_ th maximum value. If nth maximum occurs more than once, return the i...

5년 초과 전

문제를 풀었습니다


singularity 2.0 (easier)
If you have been in Cody long enough you have probably run across some badly constructed problems and test suites. This prob...

5년 초과 전

문제를 풀었습니다


Test your luck!
This problem is designed to test your luck, and therefore the contents of your function are irrelevant. In order to do so, the t...

5년 초과 전

문제를 풀었습니다


Hack not this Test Suite you will
Another Hack 10000 Challenge. I am thinking of an integer between 1 and 10000. Return a value between 1 and 10000. I ma...

5년 초과 전

문제를 풀었습니다


Seemingly impossible problem
This is a _seemingly_ 'impossible' problem, because variously your function, "impossibleFn", must return an output of either 1 o...

5년 초과 전

문제를 풀었습니다


Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

5년 초과 전

문제를 풀었습니다


Find Logic 30

5년 초과 전

문제를 풀었습니다


Now! (Anticheating version 1)
By now, _Problem 901. Now!_ has not been solved without the use of cheats or hacks. <http://www.mathworks.com/matlabcentral/c...

5년 초과 전

문제를 풀었습니다


Now!
I said now!

5년 초과 전

문제를 풀었습니다


Fix y_correct : Hack
The Test Suite has an error. Fix the y_correct value. (See the tags for hints)

5년 초과 전

문제를 풀었습니다


Find Logic 28

5년 초과 전

문제를 풀었습니다


Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

5년 초과 전

문제를 풀었습니다


Hackathon: the beginnings
I am thinking of a number between 1 and 10000... can you guess what this number is? *Description* The test suite has rando...

5년 초과 전

문제를 풀었습니다


hackathon impossible
You might have found a solution to our <http://www.mathworks.com/matlabcentral/cody/problems/205-hackathon-the-beginnings previo...

5년 초과 전

문제를 풀었습니다


Hackathon - String version
I have a function that creates a random string of characters of ASCII values 32-127. The length of the string is also randomly ...

5년 초과 전

문제를 풀었습니다


Now 20% off!
Furloughs are hitting government workers this year. To commemorate getting one unpaid day off each week until the end of Septem...

5년 초과 전

문제를 풀었습니다


Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...

5년 초과 전

문제를 풀었습니다


Find Logic 20

5년 초과 전

문제를 풀었습니다


Find Logic 24

5년 초과 전

문제를 풀었습니다


Find Logic 31

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Transform a Decimal number into a Septimal number

5년 초과 전

문제를 풀었습니다


sum of binomial series

5년 초과 전

더 보기