TABLE A gives the response of a particular temperature sensi
     TABLE A gives the response of a particular temperature sensing element over the temperature range of 0 degreeC to 250 degreeC. a) Determine the equation of the ideal straight line for the sensing element over the temperature range of 0 degreeC to 250 degreeC. b) Copy the table and complete rows 3 and 4. [R(ISL) is the ideal straight line value of resistance and N(T) is the non-linearity of the element.] c) Draw a graph of the non-linearity N(T) against temperature. d) Determine the maximum non-linearity of the sensor as a percentage of output span.   
  
  Solution
T=0:50:250
 n=length(T);
 R=[120 178 201 249 303 364]
 sR=sum(R);
 sT=sum(T);
 sT2=sum(T.^2);
 sTR=sum(T.*R);
 A=[n sT;sT sT2];
 B=[sR;sTR];
 X=A\\B;
 a=X(1);
 b=X(2);
 R_ISL=a+b.*T
 N=(R-R_ISL)./R
>> m1
T =
0 50 100 150 200 250
 R =
120 178 201 249 303 364
 R_ISL =
118.4762 165.4190 212.3619 259.3048 306.2476 353.1905
 N =
0.0127 0.0707 -0.0565 -0.0414 -0.0107 0.0297

