solve equation for variable and how to get output as number not as substituted form
Ältere Kommentare anzeigen
Hi, I tried solving following code.solved for t and i want to substitutethat value back into equation. please help me
x1=rand(1); y1=rand(1); r = 10; v1= 2*rand(1); v2= 2*rand(1); sym t eq=(x1+t*v1)^2+(y1+t*v1)^2-r^2
solt=solve(eq,t); subsv=subs(eq,{t},{solt})
Thanks, Sita
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Numbers and Precision finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!