Community Profile

# Schiefermüller Lukas

##### Last seen: 29日 前
60 2019 年以降の合計貢献数

#### Schiefermüller Lukas's バッジ

Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

7ヶ月 前

06 - Matrix Equations 2
Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...

7ヶ月 前

Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

7ヶ月 前

Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

7ヶ月 前

Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

7ヶ月 前

Max of a Vector
Write a function to return the max of a vector

7ヶ月 前

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

7ヶ月 前

The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

7ヶ月 前

Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

7ヶ月 前

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

7ヶ月 前

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.

7ヶ月 前

Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

7ヶ月 前

Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

7ヶ月 前

Complex number
For complex number c=a+bi, write code that will add a and b together.

7ヶ月 前

Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

7ヶ月 前

Counting down
Create a vector that counts from 450 to 200 in increments of 10.

8ヶ月 前

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

8ヶ月 前

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

8ヶ月 前

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

8ヶ月 前

Is my wife right?
Regardless of input, output the string 'yes'.

8ヶ月 前

Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

8ヶ月 前

Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

8ヶ月 前

Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

8ヶ月 前

Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

8ヶ月 前

Least common multiple of many numbers
1:6 -> 60

8ヶ月 前

Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

8ヶ月 前

Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

8ヶ月 前

Array of Ones
Create a 100 X 100 array of ones.

8ヶ月 前

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

8ヶ月 前

Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

8ヶ月 前