File Exchange

image thumbnail

fieldlines3D

version 1.0.0.0 (2.2 KB) by Avni Pllana
Fieldlines3D plots a field line with the initial point P(x0,y0,z0).

2 Downloads

Updated 06 Jun 2005

View License

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).

Cite As

Avni Pllana (2021). fieldlines3D (https://www.mathworks.com/matlabcentral/fileexchange/7768-fieldlines3d), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Yiwei

Y LI

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:

Ln=stream3(X,Y,Z,U,V,W,x0,y0,z0);

You then get the nodes of the fieldline in Ln,
and you plot it with

plot3(Ln(:,1),Ln(:,2),Ln(:,3),'r')

Student (UNIVERSITY OF OSLO)

I found your program very useful.
Keep up the good work.

N/A N/A

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.

Duane Hanselman

Why two separate submissions of the same file?
How is this one different than:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7733&objectType=FILE

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!