I want to solve the following integro-differential equation: , with the conditon c(0)=1, and plot its real part, that should look like a decaying exponential. I want to be able to choose the value of Omega. This is what I have tried so far but Matlab says "Warning: Unable to find symbolic solution". The line c1(t) = subs(c1(t),t,t/om) is for the x axis to be in dimensionless units (Omega*t)
clearvarsclose allomega = 0.3;syms t om tau c1(t)f(t) = exp(1i*om*(t-tau));Fx = -int(f,tau,[-inf,inf]);ode = diff(c1,t) == c1(t)/2*Fx;cond = c1(0) == 1;c1(t) = dsolve (ode);c1(t) = subs(c1(t),t,t/om);c1(t) = subs(c1(t),om,omega);fplot ((real(c1(t))).^2,[0,10])
Best Answer