Solving Freudensteins Equation for Four-Bar Linkage in Matlab

  • Context: MATLAB 
  • Thread starter Thread starter nradam
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 8K views
nradam
Messages
9
Reaction score
0
I was making a code for creating four-bar linkage in matlab. So somewhere in between i had to solve the 'freudensteins equation'. I have all the link lengths and two angles of links known, and i have two equations and two variables (the other two angle of links) to find. So here are the equations :

a*sin(alpha)=b*sin(theta)+c*sin(beta)
d+a*cos(alpha)=b*cos(theta)+c*cos(beta)

I know the link lengths a,b,c,d and the input angle theta. I need to find alpha and beta by solving the two equations.

But always some sort of crazy error comes up like :

Warning: Explicit solution could not be found.
> In solve at 81
In Untitled22 at 9

ans =

[ empty sym ]


OR

Invalid mathematical expression

OR

More variable than equations


Please tell me how to solve this. It would be good if you can tell me the code for solving it because i am brainstorming for past 2 hours on this and i am blanked out :(

Thanks in advance
 
Physics news on Phys.org
Someone please tell me how to solve these kinda trigonometric equations in matlab! Its urgent and i am stuck for 8-9 hrs now :(