I've been trying the following code to find the solutions of a two-equation system.
>syms x y
>
>eq1='(x-Xg)^2+(y-Yg)^2=102.9^2'
>eq2='((x-Xd(i))^2+(y-Yd(i))^2)^(1/2)=rod'
>
>
>S=solve(eq1,eq2)
Where Xg and Yg are declared variables and Xd and Yd are vectors. I want to use the solve in a loop...
Thanks you for your help Joerd and irstuff, your reply helped me a lot!!! Now my simulation program is complete and works loke a charm!!
Thanks a lot!!!!
Mountainman
Hi,
I'm kind of new to the use of VBA and the excel solver, but I'm having trouble writing a part of a dynamic simulation program. The loop looks OK but the seover won't fill the variable cells with values. I think I must have a problem with the use of the "i" variable...anyone can...