from
Neurocal
by Zeng Lertmanorat Simulation describing the electrical activity of nerve cell (neuron) by solving cable equation
create_initial(varargin)
function create_initial(varargin)
global zeng zeng2
%Let's do all stupid things before starting the simulation
%-----------------------------------
%)check whether the Finite Element Analysis (FEA) window is up. If so, I
%need to update the Ve
if zeng2.options.vestim==2 %imported
temp=findobj('type','figure','name','FEA_Ve');
if ~isempty(temp)
if length(temp)>1
zexst('err',['There should be only one FEA_Ve window.'])
else
if isempty(zeng.Iexstim)
disp('---Attention----------------------------------------------')
disp('There is no Iexstim in the model. FEA_Ve will not be used')
disp('---------------------------------------------------------')
else
FEA_Ve('assign Ve',temp);
end
end
end
end
%-----------------------------------