Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

fI've got to write a code that i can use in MATLAB and save as a .m file. Screen Shot 2019-01-02 at 9.25.22 AM Screen

image text in transcribedfI've got to write a code that i can use in MATLAB and save as a .m file.

Screen Shot 2019-01-02 at 9.25.22 AM Screen Shot 2019-01-02 at 9.25.44 AM Search Q Search 6.5 Discussion: Module 6 Problem 3. Integrating x times the quadratic equation to get the first n tis module we eevered dstributed loads wich coud be replaced 50 N moment of area with respect to the y axis 4. Compute the x centroid of the area under the curve 5. Integrating y/2 times the quadratic equation to get the first 100 N 150 N moment of area with respect to the x axis 6. Compute the y centroid of the area under the curve 7. Graph the area under the curve, the three given points and the> 450 mm by an equivalent singlc a 450 mm pplied a asinge point location of the centroid A few years ago MathWorks purchased the rights to MuPad which is a Save the .m file to where you keep your Matlab files and open it with Matlab to see, run and edit the files math program and incorporated it as the Symbolic Toolbox. Symbolic math programs are often called CAS programs for Computer Algebra Systems. They use algebra and calculus rules to manipulate mathematical expressions. Thus, they can solve many integrals, derivatives and equations symbolically for exact answers. The area of a circle comes out as r2 or sin() gives Assignment: In Matlab two methods are available for symbolic computation: 1. Define variables as symbolic variables with sym or syms command 2. Run MuPad directly which has its own user interface We will use the first method, but feel free to explore MuPad which has menus and buttons for most operations. Enter mupad in Matlab and wait a while. Write a symbolic code to verify one of the centroids and areas given in the "Centroids of common shapes of areas and lines" table inside thee front cover of the book or Figure 5.8 on page 238. You do not need to plot the results Two example scripts are given below The first script, RectangleCentroid.m computes the centroid for a rectangle by integration Discuss features used in your code. Show your results in the discussion Do not copy other students codes. Upload your code in the next activity The second example script, SymbolicExample.m is much more comprehensive, it does the following operations: 1. Takes three points and solves for the coefficients of a quadratic equation through the three points. 1. Search Matlab documentation for "Systems of Linear Screen Shot 2019-01-02 at 9.25.22 AM Screen Shot 2019-01-02 at 9.25.44 AM Search Q Search 6.5 Discussion: Module 6 Problem 3. Integrating x times the quadratic equation to get the first n tis module we eevered dstributed loads wich coud be replaced 50 N moment of area with respect to the y axis 4. Compute the x centroid of the area under the curve 5. Integrating y/2 times the quadratic equation to get the first 100 N 150 N moment of area with respect to the x axis 6. Compute the y centroid of the area under the curve 7. Graph the area under the curve, the three given points and the> 450 mm by an equivalent singlc a 450 mm pplied a asinge point location of the centroid A few years ago MathWorks purchased the rights to MuPad which is a Save the .m file to where you keep your Matlab files and open it with Matlab to see, run and edit the files math program and incorporated it as the Symbolic Toolbox. Symbolic math programs are often called CAS programs for Computer Algebra Systems. They use algebra and calculus rules to manipulate mathematical expressions. Thus, they can solve many integrals, derivatives and equations symbolically for exact answers. The area of a circle comes out as r2 or sin() gives Assignment: In Matlab two methods are available for symbolic computation: 1. Define variables as symbolic variables with sym or syms command 2. Run MuPad directly which has its own user interface We will use the first method, but feel free to explore MuPad which has menus and buttons for most operations. Enter mupad in Matlab and wait a while. Write a symbolic code to verify one of the centroids and areas given in the "Centroids of common shapes of areas and lines" table inside thee front cover of the book or Figure 5.8 on page 238. You do not need to plot the results Two example scripts are given below The first script, RectangleCentroid.m computes the centroid for a rectangle by integration Discuss features used in your code. Show your results in the discussion Do not copy other students codes. Upload your code in the next activity The second example script, SymbolicExample.m is much more comprehensive, it does the following operations: 1. Takes three points and solves for the coefficients of a quadratic equation through the three points. 1. Search Matlab documentation for "Systems of Linear

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

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

5 decision making problem in relavant costing

Answered: 1 week ago