Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SOLVE USING MATLAB APPLICATION , DO NOT COPY OTHER'S WORK. UPVOTE IF THE CODES ARE CORRECT. %Define the symbolic Variable x syms x %Enter the

SOLVE USING MATLAB APPLICATION, DO NOT COPY OTHER'S WORK.

UPVOTE IF THE CODES ARE CORRECT.

image text in transcribed

\%Define the symbolic Variable x syms x \%Enter the upper and lower functions as y1(x) and y2(x), respectively. y1(x)=x25k=randi(20,1)y2(x)=kx; \%50lve the point of intersections. Save the array of solutions as roots. roots = \%Save the lower value as x1 and the higher limit as 2. Use min and max to compare the roots for lower and upper limit. \%Convert the roots from symbolic constants to double. 1= 2= \%Find the points of intersection between the twop curves. Set it as an array P1=[x,y] P1= P2= \%5et the difference of the upper minus the lower function as I. Use absolute value function to ensure positive area I= \%Use the integration to the find the area bounded by the two curves at the computed boundary. Area = \%Determine the moment along y axis. My = \%Determine the centroidal element ybar by finding the midoint of the lower and upper curves. y bar = \%Determine the moment along y axis. Mx= \%Find the centroidal elements x, yc by dividing the Moments by the Area. Convert the answer as Doubles xc= yc= \%Combine the centroidal elements as Centroid as an array of element xc and yc Centroid = \%5et the graphing margin allowance to 1 margin = \%Graphing of the regions ezplot(y1, [x1-margin, x2+margin ] ); hold on; ezplot (y2, [x1-margin, x2+ margin ]); grid on; k= linspace (x1,x2); k2=[k,fliplr(k)]; inBetween =[y1(k), fliplr (y2(k))]; fill (k2, inBetween, ' y); plot (x1,y1(x1),"r"); plot (x2,y1(x2), "r*"); title ("Centroid of Plane Region") plot(xc,yc, "bo")

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

A Complete Guide To Data Science Essentials

Authors: Miguel

1st Edition

9358684992, 978-9358684995

More Books

Students also viewed these Databases questions

Question

=+5. How have your limiters changed within the last three years?

Answered: 1 week ago