Community Profile

# Schiefermüller Lukas

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

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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.

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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

2달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

해결됨

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

4달 전

Load more