Having trouble modeling summation within a differential equation

3 次查看(过去 30 天)
So I am having trouble modeling a differential equation within matlab. I can either solve at steady state where dx/dt = 0 and then solve for xi which is ideal. Or I can simply model over time. I am having trouble creating the summations using the symsum function. If anyone can help that would be appreciated.
Currently, this is what I have so far:
if true
% clear all
%valuesexcitatoryG = [];
%valuesinhibitoryG = [];
%mu =0;
%distancexx = [0 1 2 3 4];
%hold on
%for x = -4:1:4
%excitatoryG = (2.7183 ^ (((-x-mu) ^ 2)/4));
%valuesexcitatoryG = [valuesexcitatoryG excitatoryG];
%end
%VEG = valuesexcitatoryG(5:9);
%plot(distancexx, VEG);
%title('Receptive Field Coefficients')
%for x = -4:1:4
% inhibitoryG = (0.5 .* 2.7183 ^ -(((x - mu) ^ 2)/(16)));
% valuesinhibitoryG = [valuesinhibitoryG inhibitoryG];
%end
%VIG = valuesinhibitoryG(5:9);
%plot(distancexx, VIG);
%xlabel ('|k - i|')
%legend ('C_ki','E_ki')
%hold off
%
%%%%%%%%%%%%%%%%%%%%%*Section which I need help*
%solve at steady state EQ
%
% Ioverall = [ .1 .1 .1 .1 .1 .8 .8 .8 .8 .8];
%time = 0:.01:23; %time
%dt = .1; %step
%a= .1;
%b = 1;
% for Ioverall = [ .1 .1 .1 .1 .1 .8 .8 .8 .8 .8]
%xi(Ioverall) = ((b .* (VIG.*VEG))/ (a + (VEG.*Ioverall(i)) + %(VIG.*Ioverall(i))));
%
%end
%
%plot(xi)
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by