Community Profile

Contact

PhD candidate student at the University of Alaska, Studying volcano seismology. Professional Interests: Volcano Seismology

Top 5% contributor

21 downloads

1 month ago

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

Solve this!

4 years ago

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

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

If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

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

Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

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 number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

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

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

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

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

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

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

Regardless of input, output the string 'yes'.

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

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

converts from a structure, where each field contains an Nx1 array, into an 1xN array of structures

5 downloads

3 years ago

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