Question: The following function describes the temperature distribution on a rectangular plate for the range 2 x 0 and 0 y 3

The following function describes the temperature distribution on a rectangular plate for the range −2 ≤ x ≤ 0 and 0 ≤ y ≤ 3

T = 2 + x − y + 2x2 + 2xy + y2

Develop a script to: 

(a) Generate a meshplot of this function  using the MATLAB function surfc. Employ the linspace  function with default spacing (i.e., 100 interior points) to  generate the x and y values. 

(b) Use the MATLAB function  interp2 with the default interpolation option ('linear')  to compute the temperature at x = –1.63 and y = 1.627. Determine the percent relative error of your result. 

(c) Repeat  (b), but with 'spline'.

Step by Step Solution

3.48 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the MATLAB script to complete the tasks a Generating a meshplot using surfc matlab Define the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Applied Numerical Methods Questions!