Community Profile

# Benjamin Re

21 2016 年以降の合計貢献数

#### Benjamin Re's バッジ

4年弱 前

multiply by 8
multiply the input by 8

4年弱 前

multiply by 2
multiply the input by 2

4年弱 前

multiply by 3
multiply the input by 3

4年弱 前

multiply by 4
multiply the input by 4

4年弱 前

multiply by 5
multiply the input by 5

4年弱 前

multiply by 6
multiply the input by 6

4年弱 前

multiply by 7
multiply the input by 7

4年弱 前

multiply by 9
multiply the input by 9

4年弱 前

multiply by 10
multiply the input by 10

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前

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

4年弱 前