How do i solve equations for 2 unknowns?

I have just started to learn MATLAB. I just need to know how do i code to solve the following 2 equations to find the unknowns co-ordinates (x,y). The equations are as below. V being Velocity. T1,T2 denote time. (X1,Y1), (X2,Y2) indicate 2 known co-ordinates.
V*T1= sqrt((X1- X )^2+(Y1- Y )^2) and V*T2= sqrt((X2- X )^2+(Y2- Y )^2)

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 29 de Dic. de 2014
syms X Y X1 X2 Y1 Y2 T1 T2 V
sol=solve(V*T1==sqrt((X1- X )^2+(Y1- Y )^2),V*T2==sqrt((X2- X )^2+(Y2- Y )^2),X,Y)

2 comentarios

Swaroop
Swaroop el 29 de Dic. de 2014
Thank you for you prompt reply sir. I tried, but how do i input the values for all variables except (x,y). Because i tried to initialize but am getting an error "Error using ==>char, Conversion to char from logical is not possible." how do i rectify the same?
Azzi Abdelmalek
Azzi Abdelmalek el 29 de Dic. de 2014
post your code

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Preguntada:

el 29 de Dic. de 2014

Comentada:

el 29 de Dic. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by