Question

ME2543 Simulation Methods > Assignment 10: Interpolation and Curve Fitting > Problem 1 O solutions submitted (max: Unlimited)Please use MATLAB

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

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

Output:


interp_u =

215.0000

>>

Command Window interp_u = 215.0000 fx >>|

Plot:

- 0 x Figure 1 Eile Edit View 9803 B Insert Tools Window Desktop A Help O E O Spline Interpolation 3200 3100 3000 2900 2800 2

Add a comment
Know the answer?
Add Answer to:
Please use MATLAB ME2543 Simulation Methods > Assignment 10: Interpolation and Curve Fitting > Problem 1...
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
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