Community Profile # SARAH DOUGLAS

Last seen: alrededor de 2 meses ago Active since 2020

#### Statistics

• • • • #### Content Feed

View by

Solved

Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

12 meses ago

Solved

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.

12 meses ago

Solved

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

12 meses ago

Solved

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

12 meses ago

Solved

Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

12 meses ago

Solved

Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

12 meses ago

Solved

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

12 meses ago

Solved

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

12 meses ago

Solved

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

12 meses ago

Solved

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

12 meses ago

Solved

Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

12 meses ago

Solved

Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

12 meses ago

Solved

Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

12 meses ago

Solved

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

12 meses ago

Solved

12 meses ago

Solved

Circle : Square

12 meses ago

Solved

12 meses ago

Solved

Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

12 meses ago

Solved

Find the sum

12 meses ago

Solved

Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

alrededor de 1 año ago

Solved

Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

alrededor de 1 año ago

Solved

Remove any row in which a NaN appears

alrededor de 1 año ago

Solved

Input is ODD

alrededor de 1 año ago

Solved

Hello

alrededor de 1 año ago

Solved

Will there be a new leader?

alrededor de 1 año ago

Solved

Given a and b, return the sum a+b in c.

alrededor de 1 año ago

Solved

Summation of integers

alrededor de 1 año ago

Problem

Summation of integers

alrededor de 1 año ago | 0 | 45 solvers

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

alrededor de 1 año ago