Answered step by step
Verified Expert Solution
Question
1 Approved Answer
could please write an Objective and Methodology for the following code in Details , please use computer font. MATLAB R2019a X Sign In HONE I'LOIS
could please write an Objective and Methodology for the following code in Details , please use computer font.
MATLAB R2019a X Sign In HONE I'LOIS ALL'S EDITOR PUBLISH VIEW D Search Detalian C Lalind Illes Insert fx - Run Section 0 Compare - Color Comment % 83 2 Now Open Saw Bursakprints Rumi Rund Advance Rum and l'art - lind - Indent Advance Time FIF NAVIGATE EDIT BREAKTOINTS RIN CUsers USER Documents MATLAB Current Folcler Editor - prejelm x 2 Variables - Sum_even OX Name project X + projects 1 ole projecc. 2- clear Untitled2.m 3 F = [0 2.5 3.8 6 5.1 3.9 4.8 5.8 6.5 6.2 6.1 5.5 6.4 6.9 7.6 7.6 8.6 5.94 3.6 2.5 0]; Untitled 3.m 4- sum_1 - 0; sum_2 - 0; 5 N = size (F, 2): - a - 0;b - 5; 7 n = 2; even number of intervel Details 9 - h - (b-a)/ ni Workspace 9 Name Value 10 - for 1-2:2:N-1 11 Ha 0 sum_1 = sum 1 + F(i): Hb 12 - 5 b 5 -end HF 7x22 double 13 - for j= 3:2:N 2.5000 14- sum_2 - sum_2 + F(); - + F(1) Hi 20 15 - end j 21 16 - simpson_one_third - h/3 + ( F(1) + 4+2um_1 + 2+2um_2 + F(end) | +||| 2 EN 22 Command Window simpson_o... 272 sum_1 53.9000 New to MATLAB? See resources for Getting Started sum 2 55.4000 simpson_one_third = 272 fx>> script In 16 Col 63 clc clear F = [O 2.5 3.8 6 5.1 3.9 4.8 5.8 6.5 6.2 6.1 5.5 6.4 6.9 7.6 7.6 8.6 5.9 4 3.6 2.5 0]; sum_1 = 0; sum_2 = 0; N = size(F, 2); a = 0; b = 5; n = 2; % even number of intervel h = (b-a)/ n; = = for i= 2:2: N-1 sum_1 = sum_1 + F(i); end for j= 3:2:N sum_2 = sum_2 + F(j); end simpson_one_third = h/3 *( F(1) + 4* sum_1 + 2* sum_2 + F(end) ) = h
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started