Solved

Determine digits of the Copeland-Erdos constant

<https://www.mathworks.com/matlabcentral/cody/problems/1477-champernowne-constant/solutions/new Cody Problem 1477> asks us to de...

8 maanden ago

Solved

Negative without '-'

Simple: return a negative number without using the '-' sign. Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...

8 maanden ago

Solved

Compute the nth Pythagorean prime

Pythagorean primes have the form p = 4n+1, where n is an integer, and they can be written as the sum of squares of two integers....

8 maanden ago

Solved

Investigate the frequency of last digits of prime numbers

The last digit of a prime number greater than 5 can be 1, 3, 7, or 9. If the primes are distributed randomly, then these digits ...

8 maanden ago

Solved

Calculate the average value of the elements in the array

Calculate the average value of the elements in the array

8 maanden ago

Solved

Triangle Numbers (★★)

(copy of problem 5) Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3...

9 maanden ago

Solved

Create times-tables (★★★)

(copy of prob 33) At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...

11 maanden ago

Solved

Count the number of folds needed to pack a large sheet

In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

11 maanden ago

Solved

Perfect square.

Determine if the input is a perfect square or not. Example - If input is 25, return 1. If input is 17, return 0.

11 maanden ago

Solved

Sum of series

a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

11 maanden ago

Solved

Invert a 3D rigid-body transformation

Given an SE(3) matrix representing a rigid-body motion, compute its inverse without using |inv()| or |pinv()| .

11 maanden ago

Solved

Make visible max values

Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

11 maanden ago

Solved

Mastermind V: Optimal Solver - average number of guesses

The following description contains a copy of Richard Zapor's <https://www.mathworks.com/matlabcentral/cody/problems/44239-master...

11 maanden ago

Solved

Are you in XY plane?

Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

11 maanden ago