Question: An example script that you can use as a starting point is given below:$ . Modlfled by: Date: $ Description: $ This script uses symbolic
An example script that you can use as a starting point is given below:$ Modlfled by:
Date:
$ Description:
$ This script uses symbolic integration to compute the formula for
s the centroid of a shape below the function y with xmathrm from e to a
S In this case the function y is a constant resulting in a rectangle.
$ Givens :
syrs a b x y xel yel; $ declare symbolic variables
s a: the rectangle width, o xCentroid@subsupsubssubs subs Diseusis writing a symbulif code in verify one of the formulas for centroids and areas given in the "Centroids of common shapes of areas and lines" table
A Du nat use the furmula from the talte.
Some basic curve formulas to start with :
A straight line between two points, and :
Make at least two substantial replies to other students' postings.
Write a script to solve one of the problems to in section Do not post your code. Do not copy other students' codes. Upload your code on the next Canvas page. Be sure you understand how to do symbolic calculations and integration using MATLAB. Part : modify the provided code to solve for the centroids of one of the shapes shown. Usually this will only involve redefining y and maybe the integration limits
Part : Use integration to solve one of the problems from to This may involve redefining yel and the differential area if you have an upper and lower
function as well as the integration limits Fig. PAn example script that you can use as a starting point is given below: Modified by:
Date:
Description:
This script uses symbolic integration to compute the formula for
the centroid of a shape below the function y with x from to a
In this case the function y is a constant resulting in a rectangle.
Givens :
syms a b x y xel yel; declare symbolic variables
a: the rectangle width, :cdotscdots
cdotscdots
Fig. A Centroids of common shapes of areas.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
