Solved


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

4 years ago

Solved


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

4 years ago

Solved


Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

4 years ago

Solved


Draw a '4' in a zero matrix!

4 years ago

Solved


Draw a '5' in a zero matrix!

4 years ago

Solved


Draw a '6' in a zero matrix!

4 years ago

Solved


Draw a '9' in a zero matrix!

4 years ago

Solved


Draw a '2' in a zero matrix!

4 years ago

Solved


Volume of a sphere

4 years ago

Solved


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

4 years ago

Solved


Reverse the Matrix
Given a Matrix A, reverse it. Such that, last element of A becomes 1st and vice versa. for example: Input = [1 2 3;4 5 ...

4 years ago

Solved


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

4 years ago

Solved


surface of a spherical planet
you just discovered its circumference, that is the input.

4 years ago

Solved


Draw a '8' in a zero matrix!

4 years ago

Solved


Draw a '3' in a zero matrix!

4 years ago

Solved


Draw a '7' in a zero matrix!

4 years ago

Solved


Vector creation using colon operator
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use the colon (:) operator.

4 years ago

Solved


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

4 years ago

Solved


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

4 years ago

Solved


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

4 years ago

Solved


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

4 years ago

Solved


Dice roll - opposite faces
For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

4 years ago

Solved


Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

4 years ago

Solved


Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

4 years ago

Solved


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

4 years ago

Solved


Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

4 years ago

Solved


Watt
Ampere x Volt = Watt

4 years ago

Solved


Volume of Cylinder
Find the volume of a cylinder

4 years ago

Solved


Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

4 years ago

Solved


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

4 years ago

Load more