MATLAB. Creating a function involving interpolation.

  • Thread starter thst1003
  • Start date
  • #1
18
0
I have attached a pdf of the complete problem. I have been trying this for a few days and still can't figure it out. The book provided with this course does not give good information on this topic nor did the class lecture.

y1 = interp1(x,y,x1)


This is what I have so far:

function y1 = lookup(getTemp)

table = [99.63, 100, 120, 160, 200, 240, 280, 320, 360, 400, 440, 500
1.694, 1.696, 1.793, 1.984, 2.172, 2.359, 2.546, 2.732, 2.917, 3.103, 3.288, 3.565];

if getTemp > 10
y1 = interp1(table, getTemp);
end

Any help would be greatly appreciated. I am really struggling.

Homework Statement





Homework Equations





The Attempt at a Solution

 

Attachments

Answers and Replies

Related Threads on MATLAB. Creating a function involving interpolation.

  • Last Post
Replies
1
Views
2K
Replies
13
Views
1K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
6
Views
4K
Replies
6
Views
7K
  • Last Post
Replies
1
Views
998
Replies
1
Views
847
Top