Question: Matlab Problem Mouse trap The torque needed to turn the torsion spring of a mousetrap through an angle is T = + k20. Experiments produce

Matlab Problem

Matlab Problem Mouse trap The torque needed to turn the torsion spring

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

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!