Get in touch with us
Send us an e-mail
Question
A noise that grows louder over time is measured six times, and the following dataset is created (data in NoiseTime.txt and NoiseLoud.txt):
|
Time (s) |
1 |
1.3 |
… |
5.6 |
6 |
|
Loudness (dB) |
1.3 |
2.7 |
… |
86 |
104 |
Use MATLAB to perform the following tasks:
(Note: You will have to run this program more than once in order to complete it.)
a) Determine which type of function may provide the best fit by plotting the data on the following axes. Use the subplot command to include them in the same window (see problem c for plot arrangement).
|
X –axis |
Y – axis |
Function |
|
Linear |
Linear |
Linear y=mx+b |
|
Logarithmic |
Logarithmic |
Power Y=bxm |
|
Linear |
Logarithmic |
Exponential y= bemx |
The best function is the one whose data points appear to be in a straight line. Decide upon the best function, and output your choice of function to the command window (linear, logarithmic, or exponential).
b) Use polyfit to find a polynomial that fits the data. Use the following table to choose the correct format for polyfit. Note: polynomial degree n=1 always when fitting a non-polynomial. The first element p(1) gives m, and the second element p(2) gives b. In order to plot on linear-linear axes, you will have to transform the constants back. Output the values of m and b, transformed to linear-linear axes (to 3 decimal places), to the command window (using fprintf).
|
Function |
Polytfit form |
|
Linear |
P=polytfit(x,y,n) |
|
Power |
P=polyfit(log(x),log(y),1) |
|
Exponential |
P=polyfit(x,log(y),1) |
c) Plot your fitted polynomial and all data points (using linear-linear axes) as a fourth subplot in the same window (as shown below). Use intervals of 0.1. Include a legend.
Subplot arrangement
|
Linear Data Plot (1,1) |
Power Transformed Data Plot (2, 1) |
|
Exponential Transformed Data Plot (2, 1) |
Fitted Function Plot (2, 2) |
Summary
This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve polynomials and to perform given tasks.
Answer is in MATLAB format
Download Full Solution
1. I am studying macroeconomics in one of the top institutes in London. I never thought i would be facing so much trouble distinguishing between macroeconomics and microeconomics. But with TheReliableTutor.com’s econ expert tutors with their extensive knowledge in the subject and years of experience have made studying so much easier for me now! Best thing is I can chat with my online Economics tutor and get the status of the assignment instantly."
Thank you so much guys…!!! The final product was very precise, thorough and was far beyond what I expected for. It’s simply awesome and best part is that I got top grades in the assignment. I am very grateful to TheReliableTutor.com.
Their services are absolutely spot on. The online corporate finance assignment helpers pay attention to the littlest suggestion that you have mentioned and structure the assignment writing accordingly. I am very impressed with the time and effort they put into each and every corporate finance assignment help.
Our professors were piling up one assignment after the other and the pressure was too much to bear. I was thinking of how to tackle the situation when one of my friends suggested this website. I sceptical at the beginning and thought they will flunk me in the assignment. Honestly I was too scared but had no choice as I was dealing with like 10 assignments in a week. However, to my pleasant surprise I got brilliant feedback from my professor. He also had posed a certain query and that too was answered by the electronics engineering assignment expert from HwA.
The first year of my taxation course was full of disappointments as I often used to get the answers wrong and also my conception regarding the subject was not that clear. Then luckily while browsing for help in the internet I landed on this page of HwA and availed their services. The experience was wonderful and since I started to perform better in class with the help of the Australia taxation experts here in HwA.
Comments
this is a very good website
I have 50 questions for the same test your page is showing only 28
hi can you please help or guide me to answer my assignments. thanks
hi can anyone help or guide me to my assignments. thanks
This solution is perfect ...thanks
Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes
Perfect bank of solution.
great !
thanks for the quick response. the solution looks good. :)
thnx for the answer. it was perfect. just the way i wanted it.
works fine.