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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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