This is an example of how to visualize vector fields with streamlines in MATLAB®. Vector fields contain vector information for every point in space. For example, air flow data inside a wind tunnel is a vector field.
Read about the "streamline" and "coneplot" functions in the MATLAB documentation.
For more examples, go to MATLAB Plot Gallery - http://www.mathworks.com/discovery/gallery.html
MathWorks Plot Gallery Team (2020). MATLAB Plot Gallery - Streamline (https://www.mathworks.com/matlabcentral/fileexchange/35248-matlab-plot-gallery-streamline), MATLAB Central File Exchange. Retrieved .
Added live script