Professional Interests: Mechanical Engineering
Top 10% contributor
Round values towards a given vector of choices.
3 years ago
Check this function out.
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...
10 months ago
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN.
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.
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 months ago
Join the conversation