문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


Converts numbers into characters
Converts numbers into characters

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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.

11개월 전

문제를 풀었습니다


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.

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


factorial of a number x
Factorial of a number x

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


Spherical Volume
Calculate the volume of a sphere.

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

문제를 풀었습니다


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

11개월 전

더 보기