Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


Converts numbers into characters
Converts numbers into characters

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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.

oltre un anno fa

Risolto


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.

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


factorial of a number x
Factorial of a number x

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


Spherical Volume
Calculate the volume of a sphere.

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


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

oltre un anno fa

Carica altro