Resuelto


Calculating Sign Changes in a Row Vector(No Element Is Zero)?
For a row vector V=[7 1 2 -3] has one sign change from 2 to -3. So N=Sign_Changes(V) must return N=1; V=[5 9 -2 7]; h...

casi 13 años hace

Resuelto


Metamorphosis
Inspired by problem <http://www.mathworks.com/matlabcentral/cody/problems/866-community-problem-500 866>. Can you make your c...

casi 13 años hace

Resuelto


Range Testing
Range Testing. Write a function that sets y = the range of input array x

casi 13 años hace

Resuelto


Get me! v4 (Cody hacking challenge)
The latest version of the anti-hack test-suite.

casi 13 años hace

Resuelto


Get me! v3
A harder version of Get me! I *think* I only left one door open.. we could be close to a perfect anti-cheating engine,

casi 13 años hace

Resuelto


Get me! v2
Exploiting cody v2

casi 13 años hace

Resuelto


Get me!
Inspired by Now! problems. Do your best!

casi 13 años hace

Resuelto


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

casi 13 años hace

Resuelto


What? Paradox?
What's going on here?

casi 13 años hace

Resuelto


normalize group of numbers to integers
Hi guys! I have a group of 4 numbers x,y,z,w which comes from 4 integers multiplied with a common factor. [x,y,z,w] = c [i,j,k,...

casi 13 años hace

Problema


Singularity v5 (with apologies to the true hack masters)
Since the vast majority of recent problems are how to hack Cody, here's another one, with an even more malformed test suite than...

casi 13 años hace | 2 | 13 solvers

Resuelto


Polygonal numbers
The task of <http://www.mathworks.co.uk/matlabcentral/cody/problems/5 Problem 5> is to calculate triangular numbers. By playing ...

casi 13 años hace

Resuelto


PACMAT 09 - Awesome Tunnelling Ghosts, Equal Speed, 20 Lives, Game Download
The Classic PACMAN game brought to Cody. PACMAT requires clearing all the Yellow Dots. Twenty lives are available. Adjacent G...

casi 13 años hace

Resuelto


Modular multiplicative inverse
Modular multiplicative inverse is used for _The Chinese Remainder Theorem_ and _RSA algorithm_. You can visit <http://en.wikiped...

casi 13 años hace

Resuelto


Ripping numbers apart!
So you have to "rip" a number apart into individual digits... The end output is a cell. That is if: x = 12345678 o...

casi 13 años hace

Resuelto


Find same numbers touching each other...
So the goal here is to find any number that is equal to its immediate neighbors and mark it true. Here is some examples: x...

casi 13 años hace

Resuelto


Path Optimization thru N words : Time Optimization
This is an extension of <http://www.mathworks.com/matlabcentral/cody/problems/196-love-is-an-n-letter-word Cody 196 love> with ...

casi 13 años hace

Resuelto


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

casi 13 años hace

Resuelto


Primes Faster for Large N
This Challenge is to improve the "primes" function for speed. This may be accomplished by fixing memory usage. The Matlab fun...

casi 13 años hace

Resuelto


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

casi 13 años hace

Resuelto


Numeric array to cell array of strings (easy)
Given a numeric array (A) and a 1xk cell array of strings (C), return a cell array (B) that is the same size as A and in which e...

casi 13 años hace

Problema


Generate a Parasitic Number
This problem is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/156-parasitic-numbers Problem 156>. ...

casi 13 años hace | 7 | 97 solvers

Resuelto


The sum of individual numbers...
Well this one is taking a number and then summing the individual parts till you reach a value of 1, 2, 3, 4, 5, 6, 7, 8, 9, or 0...

casi 13 años hace

Resuelto


Add two numbers
Add two numbers (For beginners)

casi 13 años hace

Resuelto


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

casi 13 años hace

Resuelto


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

casi 13 años hace

Resuelto


Concatenate matrix into 4 quadrants for given number of iteration
If given a matrix and number, output should be its concatenation like wavelet for given number of iterations. Example a ...

casi 13 años hace

Resuelto


Calculate value of capacitor
Given the value of resistance and time at which capacitor charges to it's 99%. calculate the value of capacitor

casi 13 años hace

Resuelto


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

casi 13 años hace

Resuelto


convert matrix to single column
given any matrix, convert it to single column

casi 13 años hace

Cargar más