Code :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc;
clear all;
close all;
%%
polynomial=[2 -6 4 15];
vec=[-3:1:3];
out=polyval(polynomial,vec);
stem(vec,out)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hope it helps
Thank You.
Please use matlab, thank you! 2r3-6r2 4x 15 as a 8. [10 Define the polynomial p(x)...
Homework 5 (35 Points max) Please Submit all Matlab and Data files that you create for this homework Problem 1 (max 20 Points): For the second-order drag model (see Eq.(1)), compute the velocity of a free-falling parachutist using Euler's method for the case where m80 kg and cd 0.25 kg/m. Perform the calculation from t 0 to 20 s with a step size of 1ms. Use an initial condition that the parachutist has an upward velocity of 20 m/s at...
matlab please Problem 3. / 30 points Let p(x) = C1 +222 + ... + -1. The value of p for a square matrix input is defined as p(X) - 17+ 2X + ... + CX- (a) (12 points) Show that if XeRkxk has an EVD, then p(x) can be found using only evaluations of p at the eigenvalues and two matrix multiplications. (b) (18 points) Complete the following program which, given coefficients c = (C1,C2,...,C.)", evaluates the corresponding polynomial...
Please use matlab, post the code, and dont just write the code by hand. Thank you! 4 [3 points] Use the function f(x on the interval [5, 5] and the 11 points below to find a N-10 Lagrange polynomial, using MATLAB. You will need to write code for and plot the polynomial as a function of x, but you do not have to write the polynomials down by hand 5 0 2 3 4 5 f(x) | 0.0399 | 00623...
Please use MATLAB.Use MATLAB to solve the following problem. 6. Define two vectors (x and y) using coordinates from the figure below. Use plot function to get the same plane frame system like in the figure below. (15 points) (0,10) (10,10) (0,0) (10,0)
Using MATLAB, The following data is given: 13 14 15 15 2 10 12 (a) Use linear least-squares regression to determine the coefficients m and b in the function y - mx+b that best fits the data (b) Make a plot that shows the function and the data points.
PLEASE USE MATLAB COMMANDS THANK YOU Use Matlab to graph the functions f(x) = 3xsin(3x) and g(x)= 12 - 2x² so that you can read off the point(s) of intersection (if any), accurate up to two decimal places. 1) Write down the Matlab command(s) you used to create the x-vector. 2) Write down the Matlab command(s) you used to produce the vectors containing the f- and g-function values. 3) Write down the Matlab command(s) you used to plot the graphs....
please help with #1 a and b. thank you Use the following data for all problems: The data below defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T°C omg/L 0 8 16 14.621 11.843 9.870 24 32 40 8.418 7.305 6.413 a. Approximate o(19) using a 1st order Newton's interpolating polynomial. b. Approximate o(19) using a 2nd order Newton's interpolating polynomial. 2) Use linear algebra to find the coefficients of the 2nd order...
Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = ??; % Define radius. r = ??; % Define x and y in terms of theta and r. x = ??; y = ??;...
PLEASE USE MATLAB. THANK YOU! Consider the following polynomial equation: ax3 bx2 cx d 0 Write a program that allows the user to enter the coefficients a,b,c and d and the search range needed for the Bisection method. The program should stop when the maximum error is less than 0.01. The program should display the root and also have a condition to stop when no roots are found in the range. Consider the following polynomial equation: ax3 bx2 cx d...
Please answer this problem using MATLAB. Problem 4 : Finite difference formula and interpolation For this problem, you will approximate the derivative of the function g(x)5x6x 23823x 15 on a set of points using the centered difference formula (x +h) -g(x- h) 2h g'(x) Then, you will find the interpolating polynomial through these points, Q, and verify that it is indeed close to the polynomial that is the true derivative of g, ie. Q(x) g'(x) 25x 24x36x+16x+3 In your prob40...