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:...
circa 2 mesi fa
Risolto
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
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)
2 mesi fa
Risolto
Sum of series VI
What is the sum of the following sequence:
Σk⋅k! for k=1...n
for different n?
2 mesi fa
Risolto
Sum of series V
What is the sum of the following sequence:
Σk(k+1) for k=1...n
for different n?
2 mesi fa
Risolto
Sum of series IV
What is the sum of the following sequence:
Σ(-1)^(k+1) (2k-1)^2 for k=1...n
for different n?
2 mesi fa
Risolto
Sum of series III
What is the sum of the following sequence:
Σ(2k-1)^3 for k=1...n
for different n?
2 mesi fa
Risolto
Sum of series II
What is the sum of the following sequence:
Σ(2k-1)^2 for k=1...n
for different n?
2 mesi fa
Risolto
Sum of series I
What is the sum of the following sequence:
Σ(2k-1) for k=1...n
for different n?
2 mesi 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...