Matlab Code:
clc
clear all
T = [100 150 200 250 300 400 500];
u = [2506.7 2582.8 2658.1 2733.7 2810.4 2967.9 3131.6];
ua = 2680.78;
%simple interpolation
interp_u = interp1(u,T,ua)
%spline interpolation
figure
Tq = 100:10:500;
u2 = interp1(T,u,Tq,'spline');
plot(Tq,u2,':.');
xlabel('temperature')
title('Spline Interpolation');
![clc clear all T = [100 150 200 250 300 400 500]; u = [2506.7 2582.8 2658.1 2733.7 2810.4 2967.9 3131.6); ua = 2680.78; simple](http://img.homeworklib.com/questions/2c4bf860-d2bc-11ea-9ed2-4dd8c2f621c4.png?x-oss-process=image/resize,w_560)
Output:
interp_u =
215.0000
>>

Plot:

Please use MATLAB ME2543 Simulation Methods > Assignment 10: Interpolation and Curve Fitting > Problem 1...
matlab code please
0 solutions submitted (max Unlimited) Problem2 A staircase of height h is modeled by the parametric equations: x = rcos(1) y = rsin(1) -=- trix where r=h[2 + 5 sin(1/8)]/10, n=4, and h 50m is the staircase height. Make a 3-D plot (shown) of the staircase. (Create a vector , for the domain 0 to 2π and use the pi1ot3 command.) so so nd ion Your Script em of 11% iength of vector t is 40e, use,...
use
matlab
Assignment: 1) Write a function program that implements the 4th Order Runge Kutta Method. The program must plot each of the k values for each iteration (one plot per k value), and the approximated solution (approximated solution curve). Use the subplot command. There should be a total of five plots. If a function program found on the internet was used, then please cite the source. Show the original program and then show the program after any modifications. Submission...
Matlab question:
there are some pretest provided and the Matlab code should not
include any loops.
Loan Payment Table (matrix creation) 0 solutions submitted (max: Unlimited) For a term loan with initial principal (total loan amount) value of P, the monthly payment A can be computed with the formula: Where i is the monthly interest rate (decimal value), computed from an annual rate (decimal value not percent)ras/12, and n is the number of months in the term of the loan...