Data manipulation, Microeconomics

Assignment Help:

Data were taken with a Data Acquisition System (DAQ) and stored in the data file 'data.txt'. 'data.txt' is a text file with 3 columns containing the following data:

Column 1: Time [s]
Column 2: Voltage [V]
Column 3: Laser Doppler Vibrometer (LDV) velocity signal [mm/s]

Load the data into Matlab (use the 'load' command), and create one figure with (2x2) subplots. Plot the following data:

1.  In the 1st subplot (upper left corner), plot channel 2 in mV versus time in ms

2.  In the 2nd subplot (upper right corner), we want to plot the moving average of the voltage signal (channel 2) in mV versus time in ms. For the moving average calculation, compute the average value of the past 500 samples. Use a for or while-loop. Note that the moving average for the first 499 samples is equal to zero.

3.  For subplot 3 (lower left corner),  plot the LDV velocity signal in mm/s versus time in ms

4.  In subplot 4 (lower right corner), we want to plot the  integrated LDV signal in nm versus time in ms. To obtain the displacement signal in mm, integrate the LDV velocity signal by using the following command line detrend(cumsum(dataOfChannel3))/ Fs;

where Fs  denotes the sampling frequency at which the data was acquired.  Fs  can be calculated from the time vector (column 1) via 
Fs = 1/(t(2)-t(1))

where t represents the time vector. 'cumsum' computes the cumulative sum of the elements. For instance, cumsum([1 2 3]) = [1 (1+2) (1+2+3)] = [1 3 6]. 'detrend' removes the linear trend from a vector, as shown in the figure below.

1433_Data manipulation.png


Related Discussions:- Data manipulation

Excel Graphing/Writing Assignments for EC215-Princip, 1. Go to the website ...

1. Go to the website for MarginalRevolution. Find">http://www.marginalrevolution.com Find two posts that related to microeconomic topics that we are covering and write about on

What are accounting costs and economic costs, It is necessary for the prope...

It is necessary for the proper understanding of the price theory to know the various concepts of cost that are often employed. When an entrepreneur undertakes production of a commo

Determination of exchange rates, DETERMINATION OF EXCHANGE RATES: When...

DETERMINATION OF EXCHANGE RATES: When we study the determinants of exchange rates, we must distinguish between long run determinants and short run because the determinants in

Equalibrian, Imagine a country where plane and train services between two m...

Imagine a country where plane and train services between two main cities are both provided by private companies, and, from a consumer perspective these services are viewed as subst

Government finance: union and states, GOVERNMENT FINANCE: UNION  AND STATE...

GOVERNMENT FINANCE: UNION  AND STATES: The fiscal position of the Governments - both Centre and States - has been under stress since the mid-1980s. The stress stems from the i

Low levels of productivity, Low levels of productivity: In addition t...

Low levels of productivity: In addition to low standards of living, developing countries are characterized by relatively low levels of labour productivity. Throughout the dev

Determine the wage of labor, Consider a hypothetical nation, Solowland, whi...

Consider a hypothetical nation, Solowland, which were in the steady state. We consider a constant return to scale production function based on two production factors, labor and cap

Economic profit in a monopoly 2006 ap exam, is it just assumed that a monop...

is it just assumed that a monopoly graph is showing economic profit instead of accounting profit

Rational expectations- inflation unemployment trade-off , Rational Expectat...

Rational Expectations- Inflation Unemployment Trade-off : Now, consider what happens if we suppose that workers have rational expectations about the rate of inflation First, th

Describe classical economics, Q. Describe Classical Economics? Classica...

Q. Describe Classical Economics? Classical Economics:Tradition of economics which began with Adam Smith and continued with other theorists including Thomas Malthus, David Ricar

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd