Question: provide a python code. pleaae do not answer unrelated things. Question 4) [15pts] Let Vth=0.025V,RM=100M, and CM=100pF and I1 and I2 can be generated in
Question 4) [15pts] Let Vth=0.025V,RM=100M, and CM=100pF and I1 and I2 can be generated in python by: inport numpy as np I1=np.array([0,0,0,0,0,1e9]=50)$300ngofdataI2=np.array([0,0,0,0,0,1e9]50) In MATLAB, the following code generates I1 and I2 : I1-repmat([0,0,0,0,0,1],1,50)./(109);%300msofdata12-repaat([0,0,0,0,0,1],1,50)./(1e9); 4 (a) Simulate the LIF neuron and plot tirne vis the spiking setivity of the neuron and the inputs I1 and I2 in thire subphats (b) Set Vth=0.05. Sianulate the UIF neuron and plot time s the spiking activity of the neuron and the inpets I1 and I2 in three subplots. (c) Compare the plots of the splwe activity from the simalations in (a) and (b), what can be concluded about the impact of Vis. (d) Now set RM=100K and Vth=0.025. Simulite the LIF neuron and plot time ve, the priling activity of the neuron and the inputs l1 and l2 in chiree subplots. (6) Compare the plots of the spike activity with the originil sitnulation in (a). (f) How did rM change and bow did this impact the spibu artivity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
