解決済み


How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

4ヶ月 前

解決済み


Calculate days until Christmas
Provided with inputs year, month, day e.g. 2019,11,12, calculate the number of days until the next Christmas day, i.e. the next ...

4ヶ月 前

解決済み


SatCom #5: Determine Elliptical Orbit Parameters
*Satellite and Space Engineering - Problem #5* _This is part of a series of problems looking at topics in satellite and space...

4ヶ月 前

解決済み


SatCom #4: Satellite Orbit Altitude
Satellite and Space Engineering - Problem #4 This is part of a series of problems looking at topics in satellite and space comm...

4ヶ月 前

解決済み


SatCom #3: Free Space Path Loss
*Satellite and Space Engineering - Problem #3* _This is part of a series of problems looking at topics in satellite and space...

4ヶ月 前

解決済み


SatCom #2: Gain of a circular 'dish' antenna
Satellite and Space Engineering - Problem #2 This is part of a series of problems looking at topics in satellite and space comm...

4ヶ月 前

解決済み


SatCom #1: Wavelength of an electomagnetic wave
*Satellite and Space Engineering - Problem #1* _This is the first of a series of problems looking at topics in satellite and ...

4ヶ月 前

解決済み


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

4ヶ月 前

解決済み


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

4ヶ月 前

解決済み


Create a vector
Create a vector from 0 to n by intervals of 2.

4ヶ月 前

解決済み


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

4ヶ月 前

解決済み


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

4ヶ月 前

解決済み


Find max
Find the maximum value of a given vector or matrix.

4ヶ月 前

解決済み


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

4ヶ月 前

解決済み


Inner product of two vectors
Find the inner product of two vectors.

4ヶ月 前

解決済み


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

4ヶ月 前

解決済み


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

約1年 前

解決済み


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

約1年 前

解決済み


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

約1年 前

解決済み


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

約1年 前

解決済み


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

約1年 前

解決済み


Create a code for XNOR
Given two inputs, output XNOR of those two

1年以上 前

解決済み


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

1年以上 前

解決済み


It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more here) asserted that readers are relatively insensitive to letter order in words, so long a...

1年以上 前

解決済み


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.

1年以上 前

解決済み


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.

1年以上 前

解決済み


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

1年以上 前

解決済み


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

1年以上 前

解決済み


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

1年以上 前

解決済み


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

1年以上 前

さらに読み込む