Community Profile

photo

Benjamin Re


Active since 2016

Statistics

  • Commenter
  • Promoter
  • Solver

View badges

Content Feed

View by

Solved


Add 10
Add 10 to x

7 years ago

Solved


multiply by 8
multiply the input by 8

7 years ago

Solved


multiply by 2
multiply the input by 2

7 years ago

Solved


multiply by 3
multiply the input by 3

7 years ago

Solved


multiply by 4
multiply the input by 4

7 years ago

Solved


multiply by 5
multiply the input by 5

7 years ago

Solved


multiply by 6
multiply the input by 6

7 years ago

Solved


multiply by 7
multiply the input by 7

7 years ago

Solved


multiply by 9
multiply the input by 9

7 years ago

Solved


multiply by 10
multiply the input by 10

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

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

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

7 years ago

Solved


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

7 years ago

Solved


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

7 years ago

Solved


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

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

7 years ago

Solved


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

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

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

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

7 years ago