Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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 }x\mathrm{ 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 x.4E,Centroid=.4g,K.4gmp@subsup{n}{}{-},subs(Area),subs(Xbar), subs(Ybar) 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, (Ax,Ay) and (Bx,By):(Ay-BeAx-Bz)(x-Az)+Ay
Make at least two substantial replies to other students' postings.
Write a script to solve one of the problems 5.35 to 5.51 in section 5.2. 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 1: 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 2: Use integration to solve one of the problems from 5.35 to 5.51. This may involve redefining yel and the differential area if you have an upper and lower
function as well as the integration limits. Fig. P5.41An 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 0 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, 0My:x(W1+W1+cdots+Wn)=x1W1+x2W2+cdots+xnWn
Ms:bar(Y)(W1+W2+cdots+Wn)?b=ar(y)1W1+bar(y)2W2+cdots+bar(y)nWn
Fig. 5.8A Centroids of common shapes of areas.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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