Finding Centroid Location using Symbolic Math in Matlab

  • Thread starter Thread starter WRX200
  • Start date Start date
  • Tags Tags
    Centroid
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
WRX200
Messages
4
Reaction score
0
I'm at a complete loss on this one, so far. This problem needs to be solved symbolically with Matalb (which won't be a problem once I know what to do), but I'm not even sure where to begin. Any help would be greatly appreciated

[PLAIN]http://img227.imageshack.us/img227/9344/prob18.jpg
 
Last edited by a moderator:
Physics news on Phys.org
Due to symmetry of the function xc = b/2. To find xc, just evaluate the two integrals. Are you having trouble setting them up?
 
Yes, I'm unsure how to manipulate the other functions in order to relate everything. I just seem to be completely missing something
 
I was just being dumb, looking at the problem the wrong way. I was trying to relate yc and y, and I wasn't considering how y and dx were factoring into dA and y_bar.

I now have:
y_bar = y/2

dA = y*dx

yc = (1/2) Integral(y2*dx) / Integral(y*dx)
evaluated from 0 to b

where y = H*sin(pi*x/b)