Question: Mouse trap The torque needed to turn the torsion spring of a mousetrap through an angle is T-k, + kt. Experiments produce the following data:

 Mouse trap The torque needed to turn the torsion spring ofa mousetrap through an angle is T-k, + kt. Experiments produce the

Mouse trap The torque needed to turn the torsion spring of a mousetrap through an angle is T-k, + kt. Experiments produce the following data: e.., = {0, 0.20. 0.39. 0.59, 0.79) and Tex,-(0.5, l, 1.3, 1.7, 2). Write a subroutine FitMouse to calculate the constants ki and k2 by performing a polynomial least square fit to Tkk20 using experimental data given as two row arrays. FitMouse should except experimental datasets of any size. Your Function save C Reset MATLAB Documentation 1 function [k1,k2] FitMouse(xdata, ydata) = % Your code goes here 3 4 5 end Code to call your function C Reset 1.7,21: i angle= [0,02,0.39,0.59,0.79); torque: [0.5,1,1.3, 2 [k1,k2] = FitMouse (angle, torque) Run Function m/help/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!