Calculate the work done by integration

Assignment Help Simulation in MATLAB
Reference no: EM13493297

The work done (in Joule) to compress the piston shown in the figure is defined as:

451_calculate the work done by integration.png

1137_calculate the work done by integration1.png

Where, Pressure, P(s) = k1 s + k2

                Area, A = π r2

            Radius, r = 5 x 10-2 m

            k1 = 5 x 105 Nm-3

            k2 = 105 Nm-2

            s0 = 0 m

            s1 = 5 x 10-2 m

Now answer the following questions using Matlab:

(a) Create a function file called trap_abc123.mthat (i) takes an input argument n, (ii) calculate the work done by integration using n segment trapezoidal rule and (iii) return the resulting work done.(Note: abc123 is your respective ID)

(b) Create a source file called exam_abc123.mthat calls the function for n = 1, n = 11, n = 21, n = 31, n = 41 and n = 51

(c) Calculate the exact integrationresult using Matlab symbolic tools and calculate the errors in calculating work done for n = 1, n = 11, n = 21, n = 31, n = 41 and n = 51

(d) Plot the work done versus n and error versus n

Reference no: EM13493297

Questions Cloud

Explain 1-bromo-2-methylpropane or 2-bromopropane : Explain this difference in reactivity. and which compound do you expect to be more reactive in the silver nitrate test. 1-bromo-2-methylpropane or 2-bromopropane? explain.
Compute the cost of the machining department : Determine whether overhead was under- or overapplied during the year in the Machining Department.
What is its kinetic energy when it hits the floor : a 7.00 kg ball falls from a 2.00m shelf. Just as it hits the floor, what is its kinetic energy when it hits the floor
How should they orient the coil for maximum output : A home owner who lives beside a 60 Hz power line decides to harvest some energy from the oscillating field.  How should they orient the coil for maximum output
Calculate the work done by integration : Takes an input argument and calculate the work done by integration usingn segment trapezoidal rule
Compute the ph and the poh of an aqueous solution : Calculate the pH and the pOH of an aqueous solution that is 0.035 M in HCl(aq) and 0.095 M in HBr(aq) at 25°C.
Evaluate the ph and the poh of an aqueous solution : Calculate the pH and the pOH of an aqueous solution that is 0.035 M in HCl(aq) and 0.095 M in HBr(aq) at 25°C.
Evaluate the concentration of h3o in a solution : Calculate the concentration of H3O in a solution that contains 5.5 x 10^-5 M OH at 25 degrees celsius. Identify the solution as acid, basic, or neutral.
Find the mean delay e(t) and the average wait time e(w) : Consider a statistical multiplexer (or a data concentrator) in which the input packets from terminals connected to it are merged in order of arrival in a buffer and are then read out first come-first served over an outgoing transmission link. ..

Reviews

Write a Review

Simulation in MATLAB Questions & Answers

  Use matlab to plot the periodic square wave

Use MATLAB to plot the periodic square wave 5 f(t) over the time interval 0 ≤ t ≤ 3T  . On the same graph, plot the output waveforms, f0(t), of the two amplifiers with corner frequencies of F =  10I and F = 40I, respectively.

  Calculate the stress intensity factor

Use the three-parameter zone finite element method or the boundary collocation method to calculate the stress intensity factor K, at the crack tip for the plate

  Use matlab to plot the function

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Need an expert who can model a drill in simulink

Need an expert who can model a drill in Simulink. Working model of a drill needing for an improvment to behave more realistically as a drill to drill through plastic block.

  Plot the original periodic square wave

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Simulate the standardised sum of independent

Simulate the standardised sum of independent and identically distributed variates - Fit a linear regression model as in Q5, and plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

  Solve the linear system

Compute the rank of S manually and use the MATLAB function to verify the result - Solve the linear system of equations Ax = b using MATLAB.

  Number of packets received with time

Let x be the number of packets received with time -

  Project is on load frequency control using fpid

Project is on load frequency control using FPID tuned using GA and PSO algorithm and the system is a two area system.

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Build a simulation using newtons laws of motion

Build a new and different simulation of your own using Newtons laws of motion and Show the code and describe how it works

  Design the automatic control section using statecharts

Aim of this project is to design an embedded system which can move loads from one place to another. The system can be operated manually, automatically and wirelessly.

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