solution:
x=[0 1 8 12 27 ];
y=[1 2 3 4 5 ];
xx=0:25:27;
yy=spline(x,y,xx);
plot(x,y,'o',xx,yy);
please give me like..its help me to write more questions..thank you..
USE MATLAB 3. Use MATLAB or Scilab to implement cubic spline, and plot the points and...
i got it incomplete sorry I put this by mistake. can this be canceled? 4. Use MATLAB or Scilab to implement linear regression, and plot the points and the curve for the following data sets. x [018 12 27) and y [12345 Input: (copy and paste the MATLAB or Sclab commandin the folowing bax) cic X1-101 8 12 271: Y1-11 234 5] Y-transpose(Y1) for n-1:5 X(n,2)-X1(n) end format long ycalc-S(2) X+S(1); scatter(X1,Y1) hold on plot(X,ycalc) xlabel(X) ylabel(Y) title('Linear Regression Relation...
Use MATLAB OR SCILAB TO PERFORM THE FOLLOWING MATRIX OPERATION Use MATLAB or Scilab to perform the following matrix operation 1 7 -2 3 10 91 5 -1 1) 2 51 13 7 -54 21 31 4 -15 2 9 6 18 -4 -2 31 Input: (copy and paste the MATLAB or Scilab command in the following box) Output: (copy and paste the output in the following box)
must be done in MATLAB 2. Create a main program that calls the subroutine created on problem 1 and compare results using the following data sets: b. (1 5), (0, 8), (3, -10) С. (-10,-2). ( 4,5), (7, 3), (12, 20) Output: (copy and paste the output in the following box) Use MATLAB or Scilab to solve the following problems 1. Create a MATLAB subroutine called Lagrange.m that receives two set data points, x and y and plots the curve...
2. Create a main program that calls the subroutine created on problem 1 and compare results using the following data sets: b. 1 5), (0, 8), (3,-10) С. (-10,-2), (45), (73), (12, 20) t: (copy and paste the output in the following box) Use MATLAB or Scilab to solve the following problems 1. Create a MATLAB subroutine called Lagrange.m that receives two set data points, x and y and plots the curve by interpolating the missing points (hEX-Xi-1) using Lagrange...
3D Cubic B-Spline Interpolation and Error Estimation Theme: Implement and study 3D Cubic Spline Interpolation Input: a set of points in 3D space (data(x,y,z)) Output: Spline, Spline data points and error, 3D graph that shows the original points and the Spline The major steps involved in the B-Spline Fitting and Error Estimation are as mentioned below: 1- Sample the data points from input data. 2- Interpolate to find the position of control points. 3- Use the B-Spline basis function to...
Use MATLAB or Scilab to solve the following problems 1. Create a MATLAB subroutine called Lagrange.m that receives two set data points, x and y and plots the curve by interpolating the missing points (h-X-x-1) using Lagrange interpolation form 2. Create a main program that calls the subroutine created on problem 1 and compare results using the following data sets: b. (1 5), (0, 8), (3,-10) C. (-10.2), ( 4,5), (7, 3), (12, 20)
Problem 3: Write a MATLAB function called cubic_spline to compute the natural cubic spline for a given data set. The x and y data points and the rdesired values (a vector) should be the inputs, and the corresponding ydesired values (a vector) should be the output.
in put and output done in computer please Use MATLAB or Scilab to solve the following problems 1. Create a MATLAB subroutine called Lagrange.m that receives two set data points, x and y and plots the curve by interpolating the missing points (h=x-X.1) using Lagrange interpolation form.
specify Output, please. 6. Create a MATLAB script to integrate the given function using the numerical scheme called Trapezoid's Rule. a. f(x)- xe* +3x1+2x-1 and find for with h 0.1, 0.01 and 0.001 Input: (copy and paste the MATLAB or Scilab command in the following box)
Write a complete set of Matlab instructions that implements cubic spline interpolation on the following data (assume clamped-end-condition). Your code should: a. Generate a single plot, over the range 0<= x <= 5, displaying: i. the individual data points ii. the generated spline function b. Predict the interpolated value at x = 0.5, x = 0.8 and x = 3.7 X у 0 1.7 1 0.3 2 1.8 3 0.4 4 2