In recent years deep brain stimulation (DBS) has seen success in curing adverse effects of several diseases, among those Parkinson. Current method for treatment uses implanted electrodes of the brain which stimulate neurons via potential fields. The precise mechanism with which DBS works is still being researched. To this end a model allowing for seamless coupling of DBS-signals and neuron behavior will aid in testing and further development of the existing DBS-signals. Kanalerna i neuronet och synapsen simuleras med hjälp av ett verktyg för MAT-LAB, som heter URDME. Därefter propagerar vi spänningsskillnaden längs neuronet för att avgöra ifall en AP signal uppstått.Även detta görs i MATLAB. Till slut kan man koppla COMSOL, en lösare för bland annat elektriska fält, så att en yttre DBS-signal kan påverka neuronens beteende. Man kanäven låta strömmarna i synapser och neuron inducera elektriska signaler från neuron ut i hjärnan. Med hjälp av COMSOL, MATLAB och URDME kan man då modellera alla aspekter av kopplingen mellan DBS och neuron helt styrt från MATLAB.