Community Profile

Contact

Top 10% contributor

I am using the sort() funtion to sort the columns of massive matrixes. By chance, I discovered that the sort algorithm took a lo...

3 Answers

3

Asked 2 years ago

I have had the same problem and just solved it after pulling my hair for quite some time. While going through the code for dico...

2425 views

Responded 3 years ago

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

Solve this!

1 year ago

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

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 a and b, return the sum a+b in c.

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

Regardless of input, output the string 'yes'.

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

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

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

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

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

Write a function called man that takes a row vector v as an input and returns a matrix H whose first column consist of the eleme...

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries