Reference no: EM13850005
To complete this homework assignment, turn in a m-file containing the MATLAB code that you generate in response to each problem.
1. Write a function that takes as arguments a minimum value and a maximum value and plots sin(x) from the specified minimum to the specified maximum.
2. Write a function that takes as an argument a single vector x. The function should set a new vector y equal to x and plot y as a function of x. Then, it should add noise to the y data points by adding or subtracting a random value between 0 and 25% of the original y value.
The new "noisy" data points should be plotted on the same axes as the original data points, such that both plots appear simultaneously.
3. A bar is a unit of pressure. Polyethylene water pipes are manufactured in pressure grades, which indicate the amount of pressure in bars that the pipe can support for water at a standard temperature. The following script printpressures prints to the screen some common pressure grades, as well as the equivalent pressures in atmospheres (atm) and pounds per square inch (psi). The conversions are:
1 bar = 0.9869 atm = 14.504 psi
The script calls a function to convert from bars to atm and psi and calls another function to print the results. Write these functions. printpressures.m:
%prints common water pipe pressure grades
commonbar = [4 6 10];
for bar = commonbar
[atm, psi] = convertbar(bar);
print_press(bar, atm, psi) end
Demonstrate strong corporate ethics
: lease discuss the ethical lessons that you learned in this class that will help you in the future. Research a company that demonstrates strong corporate ethics and discuss why the company is a good example of corporate ethics, leadership and applic..
|
How miranda vs arizona and subsequent rulings apply
: Students will analyze the following fact pattern and discuss how Miranda v. Arizona and subsequent rulings apply. Four police officers storm an apartment of a suspected drug trafficker with a history of illegal firearm possession
|
Develop a logical database design
: Develop a logical database design (relational schema) for the conceptual data model shown at the end of this document. All relations in your logical database design should be normalized to the third Normal form (3NF).
|
Develop a health and physical education literature review
: Develop Physical Education Literature review - Discuss and conclude by highlighting key -big picture? changes that have taken place in PE/HPE
|
Arguments a minimum value and a maximum value
: Write a function that takes as arguments a minimum value and a maximum value and plots sin(x) from the specified minimum to the specified maximum.
|
Write a report about tourism in south africa
: Write a report about Tourism in South Africa. Introduction (200-250 words) - Should include Justification of choice of region -negatives - political, economical, legal, safety security issues.
|
Discuss the steps involved in a bill becoming a law
: Discuss the steps involved in a Bill becoming a Law. Is the path too arduous or too easygoing? Do such hurdles prevent too many good bills from becoming laws. Are the steps involved in a bill becoming a law necessary and why
|
Object oriented programming-getting started with classes
: Suppose you are car shopping and want to store information about possible choices. Model, and implement an automobile class. Use a UML drawing tool such as Umbrello or Microsoft Visio to create a class diagram. Your class should have at least cons..
|
Explain aspects of marketing and strategic planning
: analyze the connection between these aspects of marketing and strategic planning. Why is it important for these elements of marketing efforts to be tied to a strategic plan
|