Question

c. Determine f(4) using MATLABs spline function d. Determine f4) using MATLABs interp1 function e. Determinef(4) using18.6 Given these data 1 2 3 5 7 8 f/x) 99 3 19 291 444 Calculate f(4) using Newtons interpolating polynomials of order 1 thr

ANSWER PARTS C,D, & E USING MATLAB. AND RUN THE FUNCTIONS PROVING THEY WORK! I DONT KNOW HOW TO RUN THESE FUNCTIONS, HELP!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Stack: Base fx 8 2 9 f - - 1.0 + = 1.1 x % 0 clc clear all part 1 x=(1,2,3,5,7,8]; f=(3,6,19,99, 291, 444]; disp(the value oCommand Window the value of f(4) using spline function is:: ans = 48 the value of f(4) using interpi function is:: ans = f_in

Add a comment
Know the answer?
Add Answer to:
ANSWER PARTS C,D, & E USING MATLAB. AND RUN THE FUNCTIONS PROVING THEY WORK! I DONT...
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
  • I need help with parts A B D E and F. Please show hand work for...

    I need help with parts A B D E and F. Please show hand work for solving A and B while D and E should be matlab codes. How do i pick the right graph for part F? 5 2 4 6 Linear spline: s fi+ (x-x) 2) Given the points 40 78 125 256 348 425 X1-x a) Write the correct linear spline equation to interpolate for x 4.72, simplifying where appropriate to get to the slope-intercept form. (4...

  • Problem 1 Use the trapezoidal rule technique to approximate the following integrals: a) 「(x2+1)d...

    help wanted?? thank you explain correctly Problem 1 Use the trapezoidal rule technique to approximate the following integrals: a) 「(x2+1)dr(Note: use 0.5 increments forx) b) sina d INote: use a MATLAB function to subdivide the interval into eight equal parts) c e dx (Note: use 0.25 increments for x Problem 2 Use the Simpson's rule to evaluate the following integrals aDdr Problem 3: Given the polynomial: x3-6x2 + 30-0, Use MATLAB to find all roots of this polynomial. Use MATLAB's...

  • 2. For the transfer functions in problem 1 (a)(d)(e), find the corresponding impulse response functions h(t) using par...

    2. For the transfer functions in problem 1 (a)(d)(e), find the corresponding impulse response functions h(t) using partial fraction expansion and determine the value of lim h(t) if the limit exists. Verify that lim- n(t)-0 for stable systems. (optional) After performing the partial fraction expansion by hand (required), yoiu are encouraged to use MATLAB to verify your results. MATLAB has a function called 'residue' that can calculate poles (pi) and residues (ci). For example, the following line will calculate the...

  • PLEASE ONLY DO D IN MATLAB. I DID A B AND C, dont need them. Intro...

    PLEASE ONLY DO D IN MATLAB. I DID A B AND C, dont need them. Intro to Computers for Engineers Recitation 11 In today's class, we are modeling a spacecraft. Please submit all functions you write. Pay very careful attention to names. If you name a function differently from what you are instructed, things might not work. Test your code using the scripts siml.m and sim2.m before trying to submit on zyLabs. A. [Submit on zyLabs] Write a function that...

  • Please solve these using matlab Problem 1 Given the transfer functions e S +5 (a) C(s)...

    Please solve these using matlab Problem 1 Given the transfer functions e S +5 (a) C(s) 20 S + 20 (b) Use the step function to determine the time constant and rise time for each system. Note: estimate these values from the plot and do not use the stepinfo function. Problem 2 Given the transfer function 100 G(S) = 22 +45 + 25 a. Use the plot resulting from the step function in MATLAB to determine the percent overshoot, settling...

  • Write MATLAB code g(x)=x+a*f(x) f(x)=(e^x)+(x^2)-x-4 function f(x) is stored in fogp1.m (c) (1) Create a file...

    Write MATLAB code g(x)=x+a*f(x) f(x)=(e^x)+(x^2)-x-4 function f(x) is stored in fogp1.m (c) (1) Create a file gopgi.m to calculate the function glir, a) (see Preparation, ex. 7c) function [y] =gopg1(x,a) % input: x, a % output: y y= .....; (2) Create a file sucsub1.m and write a program that calculates the solution using the method of successive substitution. Calculate the values of g(x, a) by making multiple calls to the function gopg1(x, a). Take xo = 1.3 as starting value...

  • 2. Sketch the graph of the following functions and find the values of x for which lim f(x) does not exist. b)/(x) = 1, x = 0 f(x)- 5, x=3 c) x2 x>1 2x, x> 3 d) f(x)-v e) (x)- [2x 1- sin x D...

    2. Sketch the graph of the following functions and find the values of x for which lim f(x) does not exist. b)/(x) = 1, x = 0 f(x)- 5, x=3 c) x2 x>1 2x, x> 3 d) f(x)-v e) (x)- [2x 1- sin x Discuss the continuity of the functions given in problem #2 above. Also, determine (using the limit concept) if the discontinuities of these functions are removable or nonremovable 3. Find the value of the constant k (using...

  • i BOX Number- " Parts reference Text CommentsHeader&Footer Links MATLAB Lab 8 This exercise was done previously for a full circle. Perform all the steps shown including the plot, but only...

    i BOX Number- " Parts reference Text CommentsHeader&Footer Links MATLAB Lab 8 This exercise was done previously for a full circle. Perform all the steps shown including the plot, but only for the function shown in part b). Objective: In calculus, integration allows us to find the area under a curve. Numerical methods exist which enable us to approximate the area An interesting approach is to randomly select points in an x-y plane and find the fraction of those points...

  • a b c d e f g h i j 10 parts images are as large...

    a b c d e f g h i j 10 parts images are as large as I can get them! Please try to zoom in. X Company, a manufacturer, incurred the following total costs during the year: Direct materials Direct labor Overhead $53,608 113,177 155,888 The following additional information was available: • Revenue for the year was $85,034. Direct material purchases during the year were $30,062. • Several jobs that cost a total of $18,145 were unfinished as of...

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
ADVERTISEMENT