Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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]

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 30

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Now!
I said now!

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 28

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 20

mehr als 5 Jahre vor

Gelöst


Find Logic 24

mehr als 5 Jahre vor

Gelöst


Find Logic 31

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


sum of binomial series

mehr als 5 Jahre vor

Mehr laden