plot - Mathematica - Create a custom plotter from regularly used code -


i've been searching web past hours trying find way implement routine/function in mathematica plotting. i've written code needs 2 dimensional field, say:

dx/dt = x-x^2  dy/dt = y-y^2. 

what here on solve fix points , numerically integrate few trajectories , plot them together...

now question can somehow compose code function in matlab? i've been researching concepts of module, , block seems impossible me return plot.

so clarification want able write function takes argument field, , returns plot of field me ( customised trajectories fix points etc..

customplotfield[dxdt,dydt] := ............ 

since lot of stuff plotting, code pretty large copy pasting chunks of code plots i'm doing regularly feels bit annoying.

thanks in advance!

as far can tell, on right track looking @ modules:

https://reference.wolfram.com/language/tutorial/modulesandlocalvariables.html

to return plot evaluate last expression in body of module. or use explit return.

http://reference.wolfram.com/language/ref/return.html


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -