Community Profile

# Benjamin Re

21 total contributions since 2016

#### Benjamin Re's Badges

View details...

Contributions in
View by

Solved

Add 10 to x

casi 4 años ago

Solved

multiply by 8
multiply the input by 8

casi 4 años ago

Solved

multiply by 2
multiply the input by 2

casi 4 años ago

Solved

multiply by 3
multiply the input by 3

casi 4 años ago

Solved

multiply by 4
multiply the input by 4

casi 4 años ago

Solved

multiply by 5
multiply the input by 5

casi 4 años ago

Solved

multiply by 6
multiply the input by 6

casi 4 años ago

Solved

multiply by 7
multiply the input by 7

casi 4 años ago

Solved

multiply by 9
multiply the input by 9

casi 4 años ago

Solved

multiply by 10
multiply the input by 10

casi 4 años ago

Solved

Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

casi 4 años ago

Solved

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

casi 4 años ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

casi 4 años ago

Solved

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

casi 4 años ago

Solved

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

casi 4 años ago

Solved

Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

casi 4 años ago

Solved

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

casi 4 años ago

Solved

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

casi 4 años ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

casi 4 años ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

casi 4 años ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

casi 4 años ago