- #1
thst1003
- 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.
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.