- #1
nradam
- 9
- 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
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