Risolto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

oltre un anno fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

oltre un anno fa

Risolto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

oltre un anno fa

Risolto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

oltre un anno fa

Risolto


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

quasi 5 anni fa

Risolto


Converts numbers into characters
Converts numbers into characters

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


to the 2 all elements
to the 2 all elements

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


Draw a '0' in a one matrix!

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


Add two numbers
Add two numbers (For beginners)

quasi 5 anni fa

Risolto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

quasi 5 anni fa