Need script and code using MATLAB. (rest ofsolutions below)
For your script, please perform the following: 1. Separate each question into separate, runnable sections using the "%%" comment notation. 2. You may use the code and notes from class, the textbook, MATLAB's documentation, and anything you find using Google to solve these problems. 3. Use comments as appropriate to indicate your thoughts and how your code works (or is supposed to work). This is 10 points (10%) of your grade. QUESTIONS There are 3 questions for this exam. 1. SOLVING SYSTEMS OF EQUATIONS (25 PTS) You want to put up a bookshelf to hold some of the many textbooks you are acquiring while in school. You know it needs a support cable to help hold the weight, but you're not sure at what angle it should be at relative to the shelf. A) Given the information below, write a script to model this static (nonmoving) system as a system of equations for cable angles (0) from 5⁰ to 85° in steps of 5° and for each angle, use an iterative loop to compute the maximum number of books the shelf can hold based on the maximum allowable tension in the cable (Tmax). Use a 20% safety factor on your cable (reduce its allowable load by 20%) to make sure you do not go over. Wshelf = 20 N Tmax = 350 N Weight per book = 10N Lshelf = 0.75 m T. 20 N 0.75 m Ө Wbooks Fig. 1. Simplified model of bookshelf that extends 0.5 from the wall to which it is rigidly fixed and a support cable at a variable angle. The weight of the shelf itself is 30N, located in the middle of the shelf. The load on the end of the shelf is dependent on the number of books it is holding. i) Write a function to compute the maximum number of books for each angle using the system of equations method and time the total run time using the tic and toc commands.
Need script and code using MATLAB. (rest of solutions below)
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am