Estadísticas
3 Problemas
665 Soluciones
CLASIFICACIÓN
N/A
of 290.024
REPUTACIÓN
N/A
CONTRIBUCIONES
0 Preguntas
0 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 19.622
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
223
of 144.423
CONTRIBUCIONES
3 Problemas
665 Soluciones
PUNTUACIÓN
5.965
NÚMERO DE INSIGNIAS
8
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Resuelto
Count decimal digits of a number
* Given an integer number you have to return the number of its digits. * For example 248 has 3 digits and 1589 has 4 digits ...
más de 10 años hace
Resuelto
Check if equal
Return true if all the elements of an nD array are equal, false otherwise.
más de 10 años hace
Resuelto
Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...
más de 10 años hace
Resuelto
Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'
más de 10 años hace
Resuelto
Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...
más de 10 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 10 años hace
Resuelto
Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...
más de 10 años hace
Resuelto
Enlarge array
Given an mxn numeric array (A) and a 1x2 vector (sz) indicating the dimensions [p q] to enlarge each element, return an (m*p)x(n...
más de 10 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 ...
casi 11 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...
casi 11 años hace
Resuelto
Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.
casi 11 años hace
Resuelto
Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle
casi 11 años hace
Resuelto
Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.
casi 11 años hace
Resuelto
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
casi 11 años hace
Resuelto
Get ranks of values in a vector
For a given vector, say [6 3 8 2], return the ranks (ascending) of observations, i.e. [3 2 4 1]. Do not worry about tied ranks. ...
casi 11 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...
casi 11 años hace
Resuelto
Similar Triangles - find the height of the tree
Given the height, h1, of a power pole, shorter than a tree, a given distance, x2 away, please find h2, height of the tree. Pleas...
casi 11 años hace
Resuelto
Coin Tossing: Probability of Same Heads for N tosses
A pair of physicists toss a coin n times each. What is the probability that they tossed the same number of heads? *Input:*...
casi 11 años hace
Resuelto
Linear system solve
Solve a linear set of equations as described in the following link: http://www.people.virginia.edu/~teh1m/cody/linsolv1.pdf
casi 11 años hace
Resuelto
Create a random logical vector of N elements of which M are true.
Your task for tomorrow is to create a random binary (logical) vector of N elements of which M are true. For example: ran...
casi 11 años hace
Resuelto
edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...
casi 11 años hace
Resuelto
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...
casi 11 años hace
Resuelto
Now 20% off!
Furloughs are hitting government workers this year. To commemorate getting one unpaid day off each week until the end of Septem...
casi 11 años hace
Resuelto
Array GCD
* Find Greatest Common Divisor in a given array * Function Template: function ans = arraygcd(a) % a=[45 15 200 ...
casi 11 años hace
Resuelto
Implement a counter
Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...
casi 11 años hace
Resuelto
Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14
casi 11 años hace
Resuelto
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
Given the square root of a square number, *seed*, and a range, *n*, find the square number, *Z* as well as the other side, *y*, ...
casi 11 años hace