Question

To Be Done Only in MatLab

Please use the format provided:

Integrals can be computed numerically using the Reimann sum definition. ゞrxldr ~-ofu.h where h = 부 when N is large, x, is the

Your Script Reset MATLAB Documentation 1N 1000; 2 a=-1; 3 b-2: 9 a-0 10 b 3; 14G- 15 16 a-3 17 b 3 k= Run Script

Integrals can be computed numerically using the Reimann sum definition. ゞrxldr ~-ofu.h where h = 부 when N is large, x, is the discretized points between a and b. For example the integral of f(x)2 for 03x3 2 is done by N-100; a-0 b 2; h -(b-a)/N; x-a:h:b; sum(f*h); F = The resulting value is 2.7068, compared to the exact solution 2.6667. Use the above technique to compute the folowing integrals 2. G(x2+2x122+11)dx 0
Your Script Reset MATLAB Documentation 1N 1000; 2 a=-1; 3 b-2: 9 a-0 10 b 3; 14G- 15 16 a-3 17 b 3 k= Run Script
0 0
Add a comment Improve this question Transcribed image text
Answer #1

2 N1000, N 1000 a--3 10000-003. b2, 5, x, anto:a。孕←1 : o.oo3 , 2 ; 8. 9 0 0; 003 16. -3

Add a comment
Know the answer?
Add Answer to:
To Be Done Only in MatLab Please use the format provided: Integrals can be computed numerically using the Reimann sum...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • To Be Done Only in MatLab Please use the format provided: The derivative can be computed numerically using the definiti...

    To Be Done Only in MatLab Please use the format provided: The derivative can be computed numerically using the definition of the differentiation. with a small For example, derivative of f(x) = x, for () 1 with h = 0.01 is given by x x= 0:0.01 :1; Note that, diff(x), for a vector X, is [X(2)-X(1) X(3-X(2) Xn)-Xn1) So diff gives you one fewer points 2 for-2 IS 2 with h-0.01 . Then plot f(x) and g(x)-rx) Use the above...

  • To Be Done Only in MatLab Please use the format provided: Symbolic integration in Matlab can be done Syms x int(f) For...

    To Be Done Only in MatLab Please use the format provided: Symbolic integration in Matlab can be done Syms x int(f) For the definite integral, for example from 0 to 1 is den by intlf,0,1) Use this toolbox to find the integrals of g(x)=(x2+ 1)sin (x), G(x)=Js(x)dr Plot the function Glx) andgx) Your Script ¥ MATLAB Documentation Reset 1 syms X plot ) 7 figure fplot() Run Script Symbolic integration in Matlab can be done Syms x int(f) For the...

  • Double Integration Rerated integrals Example We evaluate the iterated integrat To evaluate the integral synbolically, we can proceed in two stapes syss x y Use MATLAB to evaluate the double inte...

    Double Integration Rerated integrals Example We evaluate the iterated integrat To evaluate the integral synbolically, we can proceed in two stapes syss x y Use MATLAB to evaluate the double integrat using the method defines in the above exanple: 2) 2) C Reset ㎜ MATLAB Dannin ia save Your Script Question1 11y 、Question 2 12.y "、Question 3 Double Integration Rerated integrals Example We evaluate the iterated integrat To evaluate the integral synbolically, we can proceed in two stapes syss x...

  • please use matlab 100 Let f(x) for questions 8, 9, 10 8. Make a function file...

    please use matlab 100 Let f(x) for questions 8, 9, 10 8. Make a function file for f(3) = I 100 I f.m function y = f(x) 9. Estimate f'(-5) by making a limit table with 5 rows. >> format long >> clearf . >> h = >> [h; (f(x+h) - f(x))./h]' ans = 0.100000000000000 -4.081632653061220 0.010000000000000 -4.008016032064176 0.001000000000000 -4.000800160032013 0.000100000000000 -4.000080001596017 0.000010000000000 10. Find R4, the Regular Right Sum with 4 rectangles, in order to approximate f(x) dx >>...

  • Explain using Matlab code but also why you used the linear system please 1 Quadrature Rule...

    Explain using Matlab code but also why you used the linear system please 1 Quadrature Rule A quadrature rule is a way to approximate integrals numerically i.e. using a computer). Many such quadrature rules can be derived by solving a simple linear system. Set up a linear system and then use Matlab to find the coefficients wo, W1, W2, W3, W4, W5 such that | f(x)dx = wof(0) + wif(0.2) + w2f(0.4) + w3f(0.6) +w4f(0.8) + w5f (1) for each...

  • f) Calculate the coefficients of the trigonometric form of the Fourier series numerically in MATLAB and...

    f) Calculate the coefficients of the trigonometric form of the Fourier series numerically in MATLAB and graphically represent the one-sided spectrum (width and phase) frequency for n up to 10 compared to the analytics results. g) From the coefficients of the trigonometric form of the Fourier series , calculate the coefficients of the exposure series and present the two-sided spectrum (width and phase) frequency. h) Find the average and active value of the signal from the Fourier expansion. i) Check...

  • 2. Using the MATLAB "integral" command, numerically determine the Fourier Cosine series of the following function....

    2. Using the MATLAB "integral" command, numerically determine the Fourier Cosine series of the following function. Assume each case has an even extension (b,-0) Last Name N-Z: f= 2xcos (Vx+4), 0<x<3 (Hint: after extension L-3) Have your code plot both the analytical function (as a red line) and the numerical Fourier series (in blue circles -spaced appropriately). Use the Legend command to identify the two items. It is suggested to use a series with 15 terms.

  • Unsure how to complete these. My understanding is that some answers will still include the n...

    Unsure how to complete these. My understanding is that some answers will still include the n variable. Calculate the upper sums Un and lower sums L n on a regular partition of the intervals, for the following integrals Note that H represents the Heaviside function as usual (1 -6x) dx (a) Upper sum Un (b) Lower sum Ln (3 + 15x) dx 0 (c) Upper sum Un (d) Lower sum Ln H (x - 2) dx e) Upper sum Un...

  • These instructions are written with the assumption that code will be done in matlab. You might fi...

    These instructions are written with the assumption that code will be done in matlab. You might find the following built in commands useful: length, plot, xlabel, ylabel, title, legend, fzero, plot, disp, axis, axes, min, max. 2. Numerical Integration (Quadrature). Write FOUR of your own numerical integration routines. One should use left-end, right-end, or mid-points, another should use the trapezoid method, another should use Simpson’s method, and the fourth should use either Guassian Quadrature or Romberg’s method. Use your four...

  • please i need the requiered MATLAB script to solve this. All calculations need to be done in matlab please Design Layout References Mailings Review View Share 1) (15 points) Calculate the followi...

    please i need the requiered MATLAB script to solve this. All calculations need to be done in matlab please Design Layout References Mailings Review View Share 1) (15 points) Calculate the following for the function f(x) = e-a-x a. Use calculus to determine the correct value of the derivative. b. Develop an M-file function to evaluate the centered finite-difference approximations, starting with x = 0.5 Thus, for the first evaluation, the x values for the centered difference approximation will be...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT