Community Profile

Contact

Professional Interests: Mechanical Engineering

Top 10% contributor

Round values towards a given vector of choices.

22 downloads

3 years ago

http://www.mathworks.com/matlabcentral/fileexchange/37674-roundtowardvec-m Check this function out.

0

Answered 3 years ago

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

Solve this!

1 year ago

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

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

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

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

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

8 downloads