Community Profile

Contact

Top 10% contributor

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

Solve this!

2 years ago

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

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

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

Given a numeric matrix A and a logical array L of the same size as A, return a row vector S containing the columnwise sums of th...

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

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

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

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

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

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

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