Question: Problem 2 : GLLS Curve Fit 0 solutions submitted ( max: Unlimited ) Open Problem in MATLAB Online A thermistor is a resistor with a
Problem : GLLS Curve Fit
solutions submitted max: Unlimited
Open Problem in MATLAB Online
A thermistor is a resistor with a temperaturedependent resistance. These electronic devices are used for temperature measurement in a variety of applications. The image below shows one example of what they look like.
Diagram of a Thermistor
Write a function that uses the general linear leastsquares approach ie QR factorization with left division to determine the best values of the constants and to fit the model:
Equation model of a thermistor
to a set of data for temperature versus resistance. Your function should also calculate statistical measures to quantify the quality of the curve fit. Your function should receive a single input:
A twocolumn matrix with resistance values Ohms in the first column and temperature values Celsius in the second column.
It should return the following outputs in order:
A row vector of the fit coefficients and
The coefficient of determination rsquared value" for the curve fit scalar value
The standard error for the fit scalar value
You will need to transform the mathematical model into a linear combination of basis functions to make it suitable for the general linear leastsquares approach. You'll need to also transform the data to calculate the fit. Be sure to transform both back to their original forms before computing the curve fit quality measures.
Function
Save
C Reset
MATLAB Documentation
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
