Gelöst


Draw a '7' in a zero matrix!

etwa ein Jahr vor

Gelöst


Draw a '8' in a zero matrix!

etwa ein Jahr vor

Gelöst


Draw a '3' in a zero matrix!

etwa ein Jahr vor

Gelöst


Draw a '2' in a zero matrix!

etwa ein Jahr vor

Gelöst


Draw a '5' in a zero matrix!

etwa ein Jahr vor

Gelöst


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

etwa ein Jahr vor

Gelöst


Draw a '1' in a zero matrix!

etwa ein Jahr vor

Gelöst


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

etwa ein Jahr 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 ein Jahr vor

Gelöst


Converts numbers into characters
Converts numbers into characters

etwa ein Jahr vor

Gelöst


Find the max element of the array
Find the max element of the array

etwa ein Jahr vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

etwa ein Jahr vor

Gelöst


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

etwa ein Jahr vor

Gelöst


to the 2 all elements
to the 2 all elements

etwa ein Jahr vor

Gelöst


the average value of the elements
Calculate the average value of the elements in the array

etwa ein Jahr vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

etwa ein Jahr vor

Gelöst


calculate the length of matrix
input 1 array, calculate the length

etwa ein Jahr vor

Gelöst


Draw a '0' in a one matrix!

etwa ein Jahr vor

Gelöst


Find the next prime number
Find the next prime number or numbers for given n. For example: n = 1; out = 2; or n = [5 7]; out = [7 11]; ...

etwa ein Jahr vor

Gelöst


Make a vector of prime numbers
Input(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...

etwa ein Jahr vor

Gelöst


Largest Twin Primes
<http://en.wikipedia.org/wiki/Twin_prime Twin primes> are primes p1, p2 = p1 + 2 such that both p1 and p2 are prime numbers. Giv...

etwa ein Jahr vor

Gelöst


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

etwa ein Jahr vor

Gelöst


Find nearest prime number less than input number
Find nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...

etwa ein Jahr vor

Gelöst


Sophie Germain prime
In number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...

etwa ein Jahr vor

Gelöst


Circular Primes (based on Project Euler, problem 35)
The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. The...

etwa ein Jahr vor

Gelöst


Mersenne Primes vs. All Primes
A Mersenne prime (M) is a prime number of the form M = 2^p - 1, where p is another prime number. <https://www.mathworks.com/matl...

etwa ein Jahr vor

Gelöst


The Goldbach Conjecture
The Goldbach conjecture asserts that every even integer greater than 2 can be expressed as the sum of two primes. Given the eve...

etwa ein Jahr vor

Gelöst


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

etwa ein Jahr vor

Gelöst


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

etwa ein Jahr vor

Gelöst


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

etwa ein Jahr vor

Mehr laden