Info
This question is closed. Reopen it to edit or answer.
Anyone know how I can improve my code and create the following equation? I only have the signal and image toolboxes
1 view (last 30 days)
Show older comments
%*************************************************************************
%%This fucntion will store transducer coordinates and differences of
%%arrival times between each transducer and transducer 1
% which are aquired via graphData() and store them in the 2D
%%non-linear function
%**************************************************************************
function equation(xti,yti,zti,deltai,v)%known values are input parameters
b = ?;
a = (xti - xs)^2;
b = (yti - ys)^2;
c = (zti - zs)^2;
d =(ts - deltai);
e = a + b + c;
f = sqrt(e);
g = f/v;
i = g - d;
end
5 Comments
per isakson
on 22 Jun 2019
You can solve it numerically, see fsolve Solve system of nonlinear equations and possibly Code to run script multiple times, but it's a bit noisy.
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!