Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

quasi 3 anni fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

quasi 3 anni fa

Risolto


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

quasi 3 anni 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 ...

quasi 3 anni fa