Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


Draw a '4' in a zero matrix!

casi 5 años hace

Resuelto


Draw a '5' in a zero matrix!

casi 5 años hace

Resuelto


Draw a '6' in a zero matrix!

casi 5 años hace

Resuelto


Draw a '9' in a zero matrix!

casi 5 años hace

Resuelto


Draw a '2' in a zero matrix!

casi 5 años hace

Resuelto


Volume of a sphere

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


Draw a '8' in a zero matrix!

casi 5 años hace

Resuelto


Draw a '3' in a zero matrix!

casi 5 años hace

Resuelto


Draw a '7' in a zero matrix!

casi 5 años hace

Resuelto


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.

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


Watt
Ampere x Volt = Watt

casi 5 años hace

Resuelto


Volume of Cylinder
Find the volume of a cylinder

casi 5 años hace

Resuelto


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

casi 5 años hace

Resuelto


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]

casi 5 años hace

Cargar más