Solved


Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

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

5 mois ago

Solved


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

5 mois ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

5 mois ago

Solved


Area of rhombus
Calculate the rhombus area

5 mois ago

Solved


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

5 mois ago

Solved


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

5 mois ago

Solved


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

5 mois ago

Solved


Complex number
For complex number c=a+bi, write code that will add a and b together.

5 mois ago

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

5 mois ago

Solved


Rounding
Round 10.67 and make 'y' equal to that number.

5 mois ago

Solved


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

5 mois ago

Solved


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

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

5 mois ago

Solved


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

5 mois ago

Solved


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

5 mois ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

5 mois ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

5 mois ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

5 mois ago

Solved


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

5 mois ago

Solved


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

5 mois ago

Solved


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

5 mois ago

Solved


calculate the length of matrix
input 1 array, calculate the length

5 mois ago

Solved


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

5 mois ago

Solved


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

5 mois ago

Solved


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

5 mois ago

Solved


Mersenne Primes vs. All Primes
A Mersenne prime (M) is a prime number of the form M = 2^p - 1, where p is another prime number. <https://www.mathworks.com/matl...

5 mois ago

Solved


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

5 mois ago

Solved


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

5 mois ago

Solved


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

5 mois ago

Load more