fieldlines3D(X,Y,Z,U,V,W,x0,y0,z0) plots a field line with the initial point P(x0,y0,z0).The matrices X,Y,Z,U,V,and W must all be the same size and contain corresponding position and field components.The function employs the 4th order Runge-Kutta method for solving numerically differential equation y'=f(x,y).
Avni Pllana (2021). fieldlines3D (https://www.mathworks.com/matlabcentral/fileexchange/7768-fieldlines3d), MATLAB Central File Exchange. Retrieved .
This code fieldlines3D.m is an alternative for stream3.m in matlab. It will be interesting to compare the performance of the two codes. To use stream3, you type in the command line:
You then get the nodes of the fieldline in Ln,
and you plot it with
I found your program very useful.
Keep up the good work.
This is a reengineered version of fieldlines3D. It provides the same functionality, but obviously the author?s intention was to make the code more concise and understandable.
Why two separate submissions of the same file?
How is this one different than:
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!