MATLAB Solving Freudensteins Equation for Four-Bar Linkage in Matlab

  • Thread starter Thread starter nradam
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion revolves around solving Freudenstein's equation for a four-bar linkage in MATLAB, where the user has defined link lengths and one known angle but is struggling to find the other two angles using the provided trigonometric equations. The user encounters multiple errors, such as "Explicit solution could not be found," "Invalid mathematical expression," and "More variable than equations," indicating issues with the symbolic solving process in MATLAB. They seek guidance on how to resolve these errors and are looking for specific code examples to help them solve the equations effectively. A suggestion is made to refer to MATLAB's symbolic toolbox documentation for potential solutions.
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 :(
 

Similar threads

Replies
5
Views
3K
Replies
4
Views
1K
Replies
2
Views
3K
Replies
2
Views
1K
Replies
4
Views
1K
Replies
1
Views
2K
Replies
4
Views
3K
Replies
2
Views
2K
Replies
1
Views
2K
Back
Top