Question

solve using Matlab please

Problem 2. Measurement Error You work for a precision spring company and you have been asked to solve a problem in the quality assurance area. You are given a bunch of spring data. The displacement of the spring is measured as a function of a force applied to the spring. The factory does not care so much about the actual spring constant as they do that they spring constant does not vary too much from spring to spring. The tolerance is 1.5%. The data you have is: force 7.4550 8.8925 8.1558 8.0492 9.1516 7.2575 8.6716 8.6612 7.5413 8.1035 6.6276 6.5619 7.9924 8.7375 9.2020 6.7897 8.1065 7.8082 6.4357 24114] displacement [27.5843 32.8995 30.2687 29.7466 33.8470 26.9537 31.9658 32.1693 27.8325 30.0236 24.5393 24.3135 29.5386 32.3603 34 1333 25.0240 29.8929 29.0016 23.8413 27.3624] Find the spring constant that was measured, using a linear interpolation of the data. Identify the number of springs that exceed the allowed tolerance. Problem 3. Functions Write a user-defined function, that outputs the following. f(x, a); when x so f(x, a) = xe-ax, when x > 0 Problem 4. Functions Write a user-defined function that has as inputs two vectors A and B, both of length N. The output of the function is the Euclidean distance between the two vectors. For example, if All 4 5] and 6-13 5 2] then the output is/(1-3)2 + (4-5)4 (5-2)2-3.7417

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Kindly upload different questions separately. Thank you!

Add a comment
Know the answer?
Add Answer to:
solve using Matlab please Problem 2. Measurement Error You work for a precision spring company and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in...

    please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector Join the direction from A...

  • Please solve the problems from 2_5 Digital system Problem 2 Design a combinational circuit with inputs...

    Please solve the problems from 2_5 Digital system Problem 2 Design a combinational circuit with inputs a, b, c, d and outputs w, x, y, z. Assume that the inputs a, b, c d represent a 4-bit signed number (2s complement). The output is also a signed number in 2s complement which is 5 greater than the input if the input is less than 2, and is 2 less than the input if the input is greater than or equal...

  • isfy the linear equation Fkx+F where k is the spring constant and F is the preload induced during manufactur problem P13. igure P13 Close-wound tension spring for (a) Using the given data in Fig...

    isfy the linear equation Fkx+F where k is the spring constant and F is the preload induced during manufactur problem P13. igure P13 Close-wound tension spring for (a) Using the given data in Fig P12 find the equation of the line for the spring force F as a function of the displacement x, and determine the values of the spring constant k 1-4. In a bolted connection shown in Fig. P14, the force in the bolt F is given in...

  • Problem Set A Problem 6. (20%) A ordinary differential equation for a mass-damper-spring system is following....

    Problem Set A Problem 6. (20%) A ordinary differential equation for a mass-damper-spring system is following. The mass m 1, damping coetfic e initial position y(o) O, and the initial velocity i constant k 3 and force 10, all are in appropriate units. Th 1, spring zero, within the time range of O to 20 unit of time, use Matlab find the solution of function y(t)? Hint: you need to convert the 2nd order ODE into two 1st order ODEs....

  • Overview: In this exercise, you will be writing a function that finds what spring constant k...

    Overview: In this exercise, you will be writing a function that finds what spring constant k is required in order to minimise the RMSE of a spring stiffness test. To find the spring constant k_best that minimizes RMSE, you will need to apply MATLAB's in-built function fminsearch and the function rmse (data,k) defined in Exercise 3. You do not have to code this function yourself here. This function is provided to you in AMS and can be called as rmse...

  • Solve in Matlab by using Script file: Problem 4: Write a user-defined MATLAB unction that calculates...

    Solve in Matlab by using Script file: Problem 4: Write a user-defined MATLAB unction that calculates the determinant of a 3x3 matrix by using the formula: A22 A23 11 A32 A33 A23 A12 A31 A33 21 A For the function name and arguments use d3-det3by3 (A), where the input argument A is the matrix and the output argument d3 is the value of the determinant. Write the code of det3by3 such that it has a subfunction that calculates the 2x2...

  • Matlab code for this problem. 1[35pl Write a user-defined MATLAB function that determines the unit vector...

    Matlab code for this problem. 1[35pl Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector in the direction from...

  • Please solve the problems from 1_5 Digital system Complete the following homework problems. Show all work...

    Please solve the problems from 1_5 Digital system Complete the following homework problems. Show all work (making sure it is legible) and circle all answers for clarity Problem 1 w3 w4 B w1 a) Determine Boolean functions for intermediate outputs w,w2,w3, and w4 as well as the output signals X and Y. b) Construct a truth table showing the intermediate outputs wl,w2,w3, and w4 as well as the output signals X and Y c) Use K-maps to find simplified expressions...

  • MATLAB Problem HW7P2 (20 points) (5 pts) Write a user-defined MATLAB function called HW7P2_fn for the...

    MATLAB Problem HW7P2 (20 points) (5 pts) Write a user-defined MATLAB function called HW7P2_fn for the following math function 3 o-0.47x The input to the function is x and the output is y. Write the function such that x can be an array (use element-by-element operations) (15 pts) Use the function in (a) the command window to calculate y(-2) and y(5) (b) a script file HW7P2.m to determine y(x) for 0.001 Sx S 10 with 1000 points. Hint: Use the...

  • Please do problem 2 and 3 Complete the following homework problems. Show all work (making answers...

    Please do problem 2 and 3 Complete the following homework problems. Show all work (making answers for clarity sure it is legible) and circle all Problem 1 w3 X A w4 w1 C D Y w2 Determine Boolean functions for intermediate outputs wl,w2,w3, and w4 as well as the output signals X and Y. b) a) Construct a truth table showing the intermediate outputs wl,w2,w3, and w4 as well as the output signals X and Y Use K-maps to find...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT