Having trouble modeling summation within a differential equation

조회 수: 2 (최근 30일)
Nikolay N Valov
Nikolay N Valov 2018년 11월 12일
편집: Nikolay N Valov 2018년 11월 12일
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