Create an angular velocity versus time plot

Assignment Help MATLAB Programming
Reference no: EM132099984

Please if possible answer in matlab code that can be subbed straight into matlab. Description (There is a file containing motor data on Blackboard called 'motordata1.csv'.

The first column has time data, while the second column has angular velocity data. In the exercises below, you will be using algorithms to process this data.

Your algorithms need to be able to automatically work for any motor data of a similar style. An alternate piece of motor data called 'motordata2.csv' has been provided, so that you can check whether your code automatically works on data for a different test.

You may assume that the step size for the time vector is constant in your solutions (if you wish). We would like you to answer Q2-Q4 using control structures (if statements, for loops, while loops).

In-built functions can be used to check your answers (eg. for Q3 and for Q4), but should not be used in the solution algorithm.)

1. Write a code that will import the data from the .csv file into MATLAB, and create an angular velocity vs. time plot.

Hint: you will want to use the function.

2. In this experiment, the data collection software is turned on before the motor is switched on. This is why the angular velocity stays at zero to begin with.

Write an algorithm that will automatically cut out the data collected before the motor was turned on. It should also reset the time so that it starts at 0. Use this data when solving the remaining questions.

3. Angular acceleration is the derivative of angular velocity with respect to time. This can be approximated with central finite differences, which states that :

Write a for loop that is able to approximate the angular acceleration using central finite differences.

4. Angular position is the integral of angular velocity with respect to time. This can be approximated with the trapezoid rule, which states that:

Write a for loop that is able to approximate the angular position using the trapezoid rule.

5. Create a subplot that displays your angular position from Q4 as the top plot, angular velocity from Q2 as the middle plot, and angular acceleration from Q3 as the bottom plot.

Hint: You will want to use the function.

Reference no: EM132099984

Questions Cloud

Write down many separate letters of the alphabet in script : Write your name on graph paper, place a few points for each of the letters (chose them "wisely") and take down the coordinates of the points.
Opt-out option regarding childhood vaccinations : Should parents have an opt-out option regarding childhood vaccinations? Why or why not? If a child doesn't get vaccinated, do they pose a risk to public safety?
Identifying necessary entities based on the scenario : The Division maintains a list of authorized CE providers and the course-profession combinations the CE providers offer.
Repolarization in an action potential : Why does a hyperpolarization phase generally follow a repolarization in an action potential?
Create an angular velocity versus time plot : Write a code that will import the data from the .csv file into MATLAB, and create an angular velocity vs. time plot.
The binary representation of the number of elements : Prove that, the number of times two trees in the binomial heap are merged into a bigger tree is equal to the number of bit- ips when B is incremented by 1.
Explain gothic and serif and san serif styles : Explain Gothic, Serif and San Serif styles. Give proper explanation of each of approximately one page each. Also attach the screenshot of each style.
Write an algorithm method for telling if l and m store : Write an algorithm method for telling if L and M store the same sequence of elements (but perhaps with different starting points)
Can you describe how pulse wave velocity is important : Can you describe how pulse wave velocity is important for renal perfusion, and how diminished aortic elasticity can alter renal perfusion.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Use regression algorithms

The proposal which are two pages and here is the demands - Use Regression Algorithms or any type to achieve the target In Data Mining matter dealing with E-Learning Students' Data.

  Computes the stiffness matrix for one bilinear element with

write Matlab code that computes the stiffness matrix for one bilinear element with 4 nodes

  Write a script that will loop through values

Write a script that will loop through values of n until the difference between the approximation and the actual value is less than 0.0001.

  Draw the phase diagram of the ode

Math 554 Homework - Use Matlab to solve the following equations. Please (i) plot the solution as a function and draw the phase diagram of the ODE.

  Establish the relationship between profit of a monopolist

What is the average growth rates of the economy along the path (kH, KL, kH, kL, kH, ...) and how it compares with the average growth rate along the the balanced growth path - Establish the relationship between profit of a monopolist and the borrowin..

  Perform a least squares polynomial fit

ENG1060 ASSIGNMENT - Calculate the coefficient of determination and add it to the lower subplot and print a brief statement to the command window as to which method is best and provide a possible reason for this.

  Find the mean stress level of the sample

Find the Mean stress level of the sample - find the Median stress level of the sample and find the Mode of the stress level for the students

  Display the miles per pound of fuel m against the air speed

fuel consumption of an aircraft in short flight is given by the functionm -0.000653 a2 0.127 a - 5.01where m is the

  Compute the machine epsilon for the floating point system

MTH2051/3051 Introduction to Computational Mathematics Assignment- Matlab & Finite Precision Arithmetic, Monash University, Australia. Compute machine epsilon

  Design and explain a computer-based simulation model

Design and explain a computer-based simulation model which you will use to estimate the probability that among 25, 50, 75, 100, 500, or 1000 randomly chosen people, at least 2 people share the same birthday.

  Calculate the value of the sum

Using matlab-Write the function [M.] = suma(x) that calculates the sum for the left(M) and right

  Deterministic dimensions and rebar area

Performance function for bending of a rectangular reinforced concrete beam under moments due to dead and live loads

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