Resuelto


fractal circles
Create a fractal with circles using the same process as the Sierpinski triangle (https://en.wikipedia.org/wiki/Sierpinski_trian...

alrededor de 10 años hace

Resuelto


solid of revolution
Given an real polynomial P and two real numbers a,b with 0<=a<=b. Calculate the volume of the solid of revolution made by rota...

alrededor de 10 años hace

Resuelto


Euler–Mascheroni constant
Approximate the Euler-Mascheroni constant using the series representation gamma_n=\sum_{k=1}^{n} [1/k-ln(1+1/k)] Calculat...

alrededor de 10 años hace

Resuelto


Transpose of matrix
Transpose of matrix as per test cases

alrededor de 10 años hace

Resuelto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

alrededor de 10 años hace

Resuelto


Find the sum of n squares
What is the sum of the squares of the first n integers?

alrededor de 10 años hace

Resuelto


Values in Array
How many values are in the array

alrededor de 10 años hace

Resuelto


Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

alrededor de 10 años hace

Resuelto


Does this dress make me look fat
For the input string "Does xyz make me look fat" output the string "No, xyz does not make you look fat"

más de 10 años hace

Resuelto


Wien's displacement law
Given the black body temperature (in *Celsius*), output the weavelength (in *meters*) at which the radiation peaks, according to...

más de 10 años hace

Resuelto


RGB to CMYK
Convert an RGB code to the corresponding CMYK code for printing. The RGB input is a [1×3] double array between 0 and 1. ...

más de 10 años hace

Resuelto


Lambert's W
Matlab cody does not support lambertw. Try to create a lambert's w function yourself. Lambert's W is the function that solves...

más de 10 años hace

Resuelto


Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

más de 10 años hace

Resuelto


Sum two real numbers
It seems easy, but... You cannot use +, -, plus, diff, cumsum, *, prod, times, etc.

más de 10 años hace

Resuelto


generate number in particular way
A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

más de 10 años hace

Resuelto


attenuation
A beam of X-rays propagates a length d(1) through a medium with an attenuation coefficient alpha(1). After that the beam propaga...

más de 10 años hace

Resuelto


Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

más de 10 años hace

Resuelto


MATLAB Prison: Summing light bulbs
On one wall in the MATLAB prison there is a row of n numbered light bulbs. Each bulb is controlled by a switch. Every morning, n...

más de 10 años hace

Resuelto


Number of divisors of a given number
Given a Number n, return the number of his divisors without listing them example: n=14 ; Divisors={1,7,2,14} ; y=4 n=...

más de 10 años hace

Resuelto


Regular polygon bounded by and bounding a circle
As the number of sides (or vertices) of a regular polygon goes to infinity, its perimeter and area go to the perimeter and area ...

más de 10 años hace

Resuelto


the "power matrix" of two vetcors
Given two row vectors x,y of lengths m and n (resp.), create an m x n matrix whose i,j entry is x(i)^y(j).

más de 10 años hace

Resuelto


Raise a polynomial to a power
In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

más de 10 años hace

Resuelto


Is 3D point set Co-Planar?
This Challenge is to determine if four 3D integer points are co-planar. Given a 4x3 matrix representing four x,y,z integer poin...

más de 10 años hace

Resuelto


Is my wife really right?
For every input, output the string 'yes' once. Example: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?') yes1 = '...

más de 10 años hace

Resuelto


Why?
Why has been a major question throughout history; why did Napoleon fail, why do we exist, why must I work a pageant, to name a f...

más de 10 años hace

Resuelto


Find C in a right triangle
Given a right triangle A and B. Find C is hyponutuse

más de 10 años hace

Resuelto


easy multipliation
return y to be equal to 2 * x

más de 10 años hace

Resuelto


Find the Hypotenuse
Find the Hypotenuse of the triangle.

más de 10 años hace

Resuelto


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

más de 10 años hace

Resuelto


Convert from integer to binary
if true % decimalToBinaryVector(x) end

más de 10 años hace

Cargar más