Community Profile

Risk Analytics

Contact

Top 10% contributor

The surf function creates surfaces based on four points. But for the edge of the sample data below, there are only three points...

1 Answers

0

Asked 3 years ago

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

Solve this!

1 year ago

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

Regardless of input, output the string 'yes'.

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

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

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

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

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