Solved

03 - Matrix Variables 2

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

6 mois ago

Solved

Multiply by 3

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

6 mois ago

Solved

03 - Matrix Variables 1

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3a.png>> A 9x9 matrix full of 2's (Hint: use *ones* o...

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

6 mois ago

Solved

02 - Vector Variables 5

_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

6 mois ago

Solved

Find the hypotenuse

Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

6 mois ago

Solved

Determine Whether an array is empty

Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

6 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

6 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]

6 mois ago

Solved

02 - Vector Variables 4

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

6 mois ago

Solved

02 - Vector Variables 3

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2c.png>> (all the numbers from 5 to -5 in increments of ...

6 mois ago

Solved

02 - Vector Variables 2

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

6 mois ago

Solved

02 - Vector Variables 1

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2a.png>>

6 mois ago

Solved

Find the dimensions of a matrix

Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

6 mois ago

Solved

01 - Scalar variables

Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

6 mois ago

Solved

Volume of a sphere given its surface area

You just measured its surface area, that is the input.

6 mois ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

6 mois ago

Solved

Back to basics 22 - Rotate a matrix

Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

6 mois ago

Solved

Rotate a Matrix

Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

6 mois ago

Solved

Reverse a string

Reverse the given string. Example input = 'reverse' output = 'esrever'

6 mois ago

Solved

Speed of car travelling x meters in y seconds

What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

6 mois ago

Solved

Even or Odd

Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...

6 mois ago

Solved

Who Has the Most Change?

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

6 mois ago

Solved

Calculate the number of elements in a matrix.

Calculate the number of elements in a matrix.

6 mois ago

Solved

Geometric Series

Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.

6 mois ago