Hello,
I programmed this integration but the output results and the plot require some time. Do you have any ideas to change in the code to make it run faster?!!
Thanks
%--------------------------
clear, clc, clfsyms sx=-3:0.01:3;for i=1:length(x) integ=@(s) sin(s).*cos(s*x(i))./s; ST(i)=2*quad(integ,0,12)/pi;endplot(x,ST,'Color','k','LineWidth',3.5)%------------------------------------
Best Answer