Community Profile William Worrall

Last seen: 2 mesi ago Active since 2021

Statistics

• • • Content Feed

View by

Solved

Product of all elements in an array
Compute the product of all elements in an array.

2 mesi ago

Solved

Calculate the sum of two numbers. Example input = [2 3] output = 5

2 mesi ago

Solved

Find Out sum of principal diagonal element of given matrix
Find out sum of principal diagonal element of given matrix If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.

2 mesi ago

Solved

print 'Hello W0rld'

2 mesi ago

Solved

Determine the square root
Determine the square root of the value the user has entered, n.

2 mesi ago

Solved

Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

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

2 mesi ago

Solved

F.R.I.E.N.D.S

2 mesi ago

Solved

print

2 mesi ago

Solved

area

2 mesi ago

Solved

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

2 mesi ago

Solved

Basics: 'Find the eigenvalues of given matrix
Find the eigenvalues y for a given matrix x.

2 mesi ago

Solved

Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

2 mesi ago

Solved

square root
Find the square root (y) of an input (x).

2 mesi ago

Solved

Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

2 mesi ago

Solved

Select primes from the matrix.
Select primes from the matrix.

2 mesi ago

Solved

Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

2 mesi ago

Solved

Find sum of negative elements in row.
Find sum of negative elements in row. Example x=[1 -5 3 4 -6 6 7 8 9 10] result = -11

2 mesi ago

Solved

Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

2 mesi ago

Solved

Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

2 mesi ago

Solved

Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

2 mesi ago

Solved

length of a vector
Find twice the length of a given vector.

2 mesi ago

Solved

Take two incoming vectors and output the sum of the two vectors

2 mesi ago

Solved

Calculate the area of a circle
Given a circle of diameter x calculate its area

2 mesi ago

Solved

2 mesi ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

2 mesi ago

Solved

raise 1/3
Raise a number to 1/3 power.

2 mesi ago

Solved

Find the sum

2 mesi ago

Solved

Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

2 mesi ago

Solved

Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

2 mesi ago