Resuelto


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

más de 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...

más de 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>. ...

más de 13 años hace | 7 | 102 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...

más de 13 años hace

Resuelto


Add two numbers
Add two numbers (For beginners)

más de 13 años hace

Resuelto


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

más de 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...

más de 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 ...

más de 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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


GJam: 2013 Rd1a Bullseye Painting
<http://code.google.com/codejam/contests.html Google Code Jam> 2013 Round 1a Bullseye challenge is to determine how many full ri...

más de 13 años hace

Resuelto


Create different color vectors.
When producing figures with multiple lines on, you often want the lines to all be visible and different colors. Given the need f...

más de 13 años hace

Resuelto


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

más de 13 años hace

Resuelto


Find the next prime number
Find the next prime number or numbers for given n. For example: n = 1; out = 2; or n = [5 7]; out = [7 11]; ...

más de 13 años hace

Resuelto


Diagonal & Anti-Diagonal Matrix: Easy
Create a matrix as shown below from "magic" square. For example: if input x=9;then use mgic(x) and create the matrix...

más de 13 años hace

Resuelto


Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

más de 13 años hace

Resuelto


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

más de 13 años hace

Resuelto


Dice face matrix!
This is dice simulator, but instead of making a random die number, you will receive an "pre-rolled" number in and spit out a mat...

más de 13 años hace

Resuelto


Circumcircle Points
Determine the radius of the minimum sized circle that encompasses all the points. Per <http://www.inf.ethz.ch/personal/gaertn...

más de 13 años hace

Resuelto


Can you beat the lottery?
Well this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try ...

más de 13 años hace

Resuelto


Power The Product
EXAMPLE: INPUT x=10 & y=10 OUTPUT z=1000000 or, INPUT x=2 & y=3 OUTPUT z= 216 you just need to calculate the product first...

más de 13 años hace

Resuelto


Return elapsed time
Write a function that returns the amount of time it takes to run the function, as measured by tic and toc. Your answer must be c...

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


Triangular matrices in 3D array
Given a 3D numeric array _x_, return an array _y_ of the same size in which all entries to the right of the main diagonal are ze...

más de 13 años hace

Resuelto


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

más de 13 años hace

Resuelto


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

más de 13 años hace

Resuelto


Negative matrix
Change the sign of all elements in given matrix.

más de 13 años hace

Resuelto


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

más de 13 años hace

Resuelto


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

más de 13 años hace

Cargar más