Solved

Times 10

Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

3 Monate ago

Solved

Y=X

Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

3 Monate ago

Solved

Sum of elements in a vector (★)

(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

3 Monate ago

Solved

Square the input

Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

3 Monate ago

Solved

multiply by three

Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

3 Monate ago

Solved

Random Problem14 - Multiply a vector by a scalar of 2

Multiply a vector by a scalar of 2

3 Monate ago

Solved

Divide by 4

Given the variable x as your input, divide it by four and put the result in y.

3 Monate ago

Solved

03 - Matrix Variables 4

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3d.png>> A 3x4 NaN (Not a Number) matrix (Hint: use ...

3 Monate ago

Solved

Whether the input is vector?

Given the input x, return 1 if x is vector or else 0.

3 Monate ago

Solved

Calculate Inner Product

Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

3 Monate ago

Solved

Getting the indices from a vector

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

3 Monate ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

3 Monate ago

Solved

Weighted average

Given two lists of numbers, determine the weighted average as follows Example [1 2 3] and [10 15 20] should result in 33.3...

3 Monate ago

Solved

Cos Function

x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

3 Monate ago

Solved

Beginner's Problem - Squaring

Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

3 Monate ago

Solved

Perimeter of a semicircle

Given the diameter d, find the perimeter of a semicircle

3 Monate ago

Solved

Determina si el número es primo

Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

3 Monate ago

Solved

Sum of first n positive integers

Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

3 Monate ago

Solved

Convert yards to feet

The goal of this script is to convert a value given in yards to feet.

3 Monate ago

Solved

Building matrices

If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

3 Monate ago

Solved

Vertically stack two vectors

Stack two vectors on top of each-other so that... if A = [1 5 3] and B = [8 6 4] then C = [1 5 3 ; 8 6 4]

4 Monate ago