Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions