Solved

Iterative sum of digits of 2^n number
Given n, calculate the number 2^n (where n>=0) and iterate until the sum of the digits is a single-digit number. Example: Inp...

5 månader ago

Solved

Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

5 månader ago

Solved

Draw a '1' in a zero matrix!

7 månader ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

7 månader ago

Solved

Detect circles in images
Given an image and a target radius range, specified as [rmin rmax], find circles in the image. Your function should output an m-...

8 månader ago

Solved

give-nth-decimal-place-of-pi up to 100 digits
max 100th place after the decimal point this is upgrade problem of 142

8 månader ago

Solved

Ring Matrix
Given n (only odd), return output matrix a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. ...

8 månader ago

Solved

Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

8 månader ago

Solved

Number of lattice points within a circle
Find the number of points (x,y) in square lattice with x^2 + y^2 =< n. This is related to Jame's <http://www.mathworks.com/matla...

8 månader ago

Solved

The almost-birthday problem.
This is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a r...

8 månader ago

Solved

Schwarzschild radius
Compute the Schwarzschild radius for objects of mass m (kg). Use c = 299,792.458 km/s and G = 6.6738*10^-11 N*(m/kg)^2. Your fun...

8 månader ago

Solved

Periodic Table II 101.
Given the symbol of an element, return its atomic number. This is the continuation of <http://www.mathworks.com/matlabcentral/co...

8 månader ago

Solved

Special Relativity 101.
Special relativity states that the effective mass of an object varies as a function of its velocity. If *c* is the speed of ligh...

8 månader ago

Solved

Number of vertices of a hypercube
Return the number of vertices of a n-dimensional hypercube.

8 månader ago

Solved

Classification metrics

8 månader ago

Solved

Minkowski distance

8 månader ago

Solved

Divisors

8 månader ago

Solved

Taxi vs Euclides

8 månader ago

Solved

Sort a vector

8 månader ago

Solved

F-score

8 månader ago

Solved

Would you win a raffle?

8 månader ago

Solved

Mean Square Error

8 månader ago

Solved

Swap Red and Blue

8 månader ago

Solved

Rotate the Image

8 månader ago

Solved

Flip the Image

8 månader ago

Solved

Gray Image

8 månader ago

Solved

Taxicab distance

8 månader ago

Solved

Solve the recursion

8 månader ago