Risolto


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

quasi 4 anni fa

Risolto


Converts numbers into characters
Converts numbers into characters

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


to the 2 all elements
to the 2 all elements

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


Solve the equation. Find X.

quasi 4 anni fa

Risolto


Area of Ellipse

quasi 4 anni fa

Risolto


Determine if input is a perfect number
A <http://en.wikipedia.org/wiki/Perfect_number/ perfect number> occurs whent the sum of all divisors of a positive integer, exce...

quasi 4 anni fa

Risolto


unsolvable

quasi 4 anni fa

Risolto


matrix rows and columns

quasi 4 anni fa

Risolto


matrix rows and columns

quasi 4 anni fa

Risolto


Summy's even sum

quasi 4 anni fa

Risolto


Summy's odd sum

quasi 4 anni fa

Risolto


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

circa 4 anni fa

Risolto


Matrix Generation.
if input n =1, generate a matrix y = [1]

circa 4 anni fa

Risolto


find the relation...
if given input is 1, output is 4. if input is 55, output is 3136.

circa 4 anni fa

Risolto


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

circa 4 anni fa

Risolto


Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

circa 4 anni fa

Risolto


Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...

circa 4 anni fa

Risolto


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

circa 4 anni fa

Risolto


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

circa 4 anni fa

Risolto


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

circa 4 anni fa

Risolto


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

circa 4 anni fa

Risolto


Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3

circa 4 anni fa

Risolto


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

circa 4 anni fa

Risolto


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

circa 4 anni fa

Risolto


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

circa 4 anni fa

Risolto


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

circa 4 anni fa

Carica altro