
Elements Of Electromagnetics
7th Edition
ISBN: 9780190698614
Author: Sadiku, Matthew N. O.
Publisher: Oxford University Press
expand_more
expand_more
format_list_bulleted
Question

Transcribed Image Text:Problem 1 (15 points) (Core Course Outcome 5)/MatlabGrader
Write a function mySecond Derivative Order 3 that calculates the second derivative d²y/dx² of a data set (x, y) with at least
third order accuracy at each data point. The data is equidistant in x with spacing h.
The function input shall be
⚫y: one-dimensional column vector of y values
⚫h: scalar value of spacing h
The function output shall be
• d2y: column vector of the same size as y containing d²y/dx²
Calculate d²y/dx² using only the following formulas that use the nomenclature of Table 8-1 and the lecture notes, but are different
from the formulas listed there:
f" (xi) 164f(xi) — 465f(xi+1) + 460ƒ (xi+2) − 170ƒ (xi+3) + 11f (xi+5) + O(h³)
=
60h2
56f(xi−1) − 105f(xi) +40f(xi+1) + 10f(xi+2) − f(x+4) + O(h³)
60h²
−5f(xi−2) +80f(xi−1) − 150f(xi) + 80f(xi+1) − 5ƒ(xi+2)
(1)
f"(xi)
=
(2)
f"(xi)
=
+0(h)
(3)
60h2
f"(xi)
-2f(x-4)+5f(xi-3)+50f(xi-1) — 110f(xi) +57f(xi+1)
=
+0(h³)
(4)
60h²
f"(xi) =
57f(x-5) 230f(xi-4) + 290 f (xi-3)-235 f(xi-1) +118f(xi)
60h2
+0(h³)
(5)
Pay special attention to the sub-indices in the formulas, since some indices are skipped! For every data point, use the most accurate
formula, if Eq. (3) is the most accurate, followed by Eqs. (2) and (4), and followed by Eqs. (1) and (5).
Required submission:
☐ well commented script source code submitted to Matlab Grader using the Canvas link for Exam 5 - Problem 1
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- Please follow the instructions and the requirements according to the pictures above and I kinda need the solution quickly. The language of the code is in Matlab, thank you in advance.arrow_forwardHow do I input this code for this MATLAB problem? Thanks!arrow_forwardI want to run the SGP4 propagator for the ISS (ID = 25544) I got from spacetrack.org in MATLAB. I don't know where to get the inputs of the function. Where do I get the inFile and outFile that is mentioned in the following function. % Purpose: % This program shows how a Matlab program can call the Astrodynamic Standard libraries to propagate % satellites to the requested time using SGP4 method. % % The program reads in user's input and output files. The program generates an % ephemeris of position and velocity for each satellite read in. In addition, the program % also generates other sets of orbital elements such as osculating Keplerian elements, % mean Keplerian elements, latitude/longitude/height/pos, and nodal period/apogee/perigee/pos. % Totally, the program prints results to five different output files. % % % Usage: Sgp4Prop(inFile, outFile) % inFile : File contains TLEs and 6P-Card (which controls start, stop times and step size) % outFile : Base name for five output files %…arrow_forward
- Help with the MATLAB code to do the following: Given an audio recording of vehicles, compute Power Spectral Density, 1/3 octave band level, octave band level, A-weighted Leq, C-weighted Leq, L10 (unweighted since sample is short), L90 (unweighted since sample is short). If the measurement is made at approximately 50 ft, and that the vehicles are moving at an average of 65 mph, what is the flow rate Q? If instead, the noise is dominated by 1-2 motorcycles, how fast are they going? Given- -The data are in counts -Calibration factor is 133 uPa/count -Sample rate is 44100Hz. -Remember that in air the dB reference is 20 uPa -Pwelch requires that the inputs are doublesarrow_forwardplease write a matlab codearrow_forwardUSE MATLAB (Convolutional Code) The vector representation of a convolutional code is g1=[1 1]and g2=[1 0]. If the received sequence is 11 11 01 10, please use Viterbi Algorithm todecode it. Please show the full trellis diagram, including the updated trellis statemetrics.arrow_forward
- Help me solve this using MATLABarrow_forwardFix my MATLAB code. % Define unknown quantities in x-y system % abc = Acceleration of B wrt C on beam CD in i direction % vbc = Velocity of B wrt C on beam CD in i direction % xacd = Angular acceleration of beam CD in k direction % xvcd = Angular velocity of beam CD in k direction syms abc vbc xacd xvcd; % Create Unit Vectors in x-y coordinates i = [1,0,0]; j = [0,1,0]; k = [0,0,1]; % Create Unit Vectors in X-Y coordinates (R is rotation Matrix) Theta = 150; % Angle from X-axis to x-axis R = [[cosd(Theta),-sind(Theta), 0]; ... [sind(Theta), cosd(Theta), 0]; [0, 0, 1]]; XYZ = R*[i;j;k]; I = XYZ(1,:); J = XYZ(2,:); K = XYZ(3,:); % Set known quantities for Beam AB (no slider connection). xVab = -2.5*K; % Angular Velocity of Beam AB xAab = -3*K; % Angular Acceleration of Beam AB Rba = 0.2*(cosd(135)*I + sind(135)*J ); % Vector from A to B in X-Y % Calculate velocity and acceleration of point B % due to rotation of Beam AB (no slider connection). Vb1 = cross(xVab,Rba); Ab1 =…arrow_forwardMATLAB...Hand written plzzzz asap....FAST PLZZZZZZZZZZZarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY