Community Profile

Samuel Liu

MathWorks

Last seen: 2 mesi ago Active since 2021

Content Feed

View by

Solved

Find max
Find the maximum value of a given vector or matrix.

2 mesi ago

Solved

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

2 mesi ago

Solved

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

2 mesi ago

Solved

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

2 mesi ago

Solved

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

2 mesi ago

Solved

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

2 mesi ago

Solved

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

2 mesi ago

Solved

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

2 mesi ago

Solved

to the 2 all elements
to the 2 all elements

2 mesi ago

Solved

Number Puzzle - 035

2 mesi ago

Solved

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

2 mesi ago

Solved

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

3 mesi ago