Ask your own question, for FREE!
Mathematics 16 Online
OpenStudy (raffle_snaffle):

Matlab

OpenStudy (raffle_snaffle):

@jim_thompson5910

OpenStudy (raffle_snaffle):

%% Problem 1 %{ Find: the value of w necessary to for the bar to remain constant angle beta. %} % Clears command and workspace window clc clear % Defined variables syms g w L b B m; % Omega rigid body wRB = [-w*cos(B); w*sin(B); 0]; % Moment of inertia matrix IG = [0 0 0; 0 ((1/12)*m*L^2) 0; 0 0 0]; % Angular momentum about the center mass of the bar HG = IG*wRB; % Time rate of change for angular momentum dHG = cross(wRB, HG) % Gravity vector g = [(g*cos(B)) -(g*sin(B)) 0]; % Length vector from G to O rGO = [(L/2) 0 0]; % Acceleration of center mass of bar aG = [-w^2*((b*sin(B) + (L/2)*(sin(B))^2) -w^2*(b*cos(B) + (L/2)*sin(B)*cos(B)))]; % Reactions vector at pivot point O FRO = m*(aG - g) % Sum moments about center mass of bar MG = cross(rGO, FRO)

OpenStudy (raffle_snaffle):

Is there any way I can find w using a command in Matlab? I found it using hand calculations.

OpenStudy (raffle_snaffle):

MG = dHG and you solve by hand.

jimthompson5910 (jim_thompson5910):

cross refers to a matrix cross product?

OpenStudy (raffle_snaffle):

Yes.

jimthompson5910 (jim_thompson5910):

I don't see how wRB = [-w*cos(B); w*sin(B); 0]; is a 3x3 matrix

jimthompson5910 (jim_thompson5910):

cross products only work in R3

OpenStudy (raffle_snaffle):

I made it a 3x1 because of the matrix multiplication between IG and wRB.

jimthompson5910 (jim_thompson5910):

oh nvm, so wRB and HG are 3x1 matrices, ie vectors

OpenStudy (raffle_snaffle):

Yes.

jimthompson5910 (jim_thompson5910):

this command might work https://www.mathworks.com/help/symbolic/solve.html though not sure, I'm still trying to picture what the equation looks like

OpenStudy (raffle_snaffle):

I have the solution written out by hand. Let me upload an image.

OpenStudy (raffle_snaffle):

OpenStudy (raffle_snaffle):

@jim_thompson5910

jimthompson5910 (jim_thompson5910):

yikes, a lot more than what I was thinking

jimthompson5910 (jim_thompson5910):

does the solve command work though?

OpenStudy (raffle_snaffle):

You mean eqn = solve(x) = 1; solx = solve(eqn, x) ?

jimthompson5910 (jim_thompson5910):

something like that, but idk if that format will work

OpenStudy (raffle_snaffle):

It doesn't work.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!