Resuelto


03 - Matrix Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3c.png>> A 10x10 matrix where the numbers from 1 to 100 ...

alrededor de 1 año hace

Resuelto


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

alrededor de 1 año hace

Resuelto


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

alrededor de 1 año hace

Resuelto


radius of a spherical planet
You just measured its surface area, that is the input.

alrededor de 1 año hace

Resuelto


Convert radians to degrees
Given input in radians, output to degrees

alrededor de 1 año hace

Resuelto


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

alrededor de 1 año hace

Resuelto


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

alrededor de 1 año hace

Resuelto


Converts numbers into characters
Converts numbers into characters

alrededor de 1 año hace

Resuelto


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

alrededor de 1 año hace

Resuelto


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

alrededor de 1 año hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

alrededor de 1 año hace

Resuelto


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

alrededor de 1 año hace

Resuelto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

alrededor de 1 año hace

Resuelto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

alrededor de 1 año hace

Resuelto


factorial of a number x
Factorial of a number x

alrededor de 1 año hace

Resuelto


Double all elements in the array
Duplicate all elements in the array

alrededor de 1 año hace

Resuelto


Given length x find the area y of the square
Given length x find the area y of the square

alrededor de 1 año hace

Resuelto


Calculate y=2
Find the value of x so that y=2

alrededor de 1 año hace

Resuelto


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

alrededor de 1 año hace

Resuelto


Spherical Volume
Calculate the volume of a sphere.

alrededor de 1 año hace

Resuelto


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

alrededor de 1 año hace

Resuelto


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

alrededor de 1 año hace

Resuelto


Square a Number
Given an input x, return y, which is equal to the square of x.

alrededor de 1 año hace

Resuelto


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

alrededor de 1 año hace

Resuelto


02 - Vector Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2b.png>>

alrededor de 1 año hace

Resuelto


02 - Vector Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2a.png>>

alrededor de 1 año hace

Resuelto


Can the given sides form a triangle?
Can the three given sides form a triangle?

alrededor de 1 año hace

Resuelto


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

alrededor de 1 año hace

Resuelto


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

alrededor de 1 año hace

Resuelto


Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...

alrededor de 1 año hace

Cargar más