Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


Transpose of matrix
Transpose of matrix as per test cases

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


Values in Array
How many values are in the array

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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"

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


easy multipliation
return y to be equal to 2 * x

mehr als 10 Jahre vor

Gelöst


Find the Hypotenuse
Find the Hypotenuse of the triangle.

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Mehr laden