Community Profile

# Robert Snoeberger

### MathWorks

2014 年からアクティブ

All

バッジを表示

#### Content Feed

letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

6年以上 前

Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...

6年以上 前

Space Saver
Remove all characters that are below a space in ASCII value.

6年以上 前

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

6年以上 前

Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

6年以上 前

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

6年以上 前

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

6年以上 前

Calculate the derivative of a polynomial
Example: in = [ 1 1 1 ] out = [ 2 1 ]

6年以上 前

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

6年以上 前

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

6年以上 前

High school cafeteria
Given an input vector of positive integers, return a row vector with the primes first (in increasing order) and the composites n...

6年以上 前

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

6年以上 前

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

6年以上 前

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

8年弱 前