From: sinj on 8 Dec 2009 18:05 i want to integrate a function which is y=(1/10^(-8)).*(sinc(w*10^(-8)/2).*(exp(-w*10^(-8)/2).*exp(j*w*t))); i am using the code I1=[]; t1=[eps:1e-9:1e-6]; for t=eps:1e-9:1e-6 I=quadv(@(w)abc2(w,t),eps,1e9); end plot(t1,I1) but its not working and showing error what could be the error?
From: Steven Lord on 9 Dec 2009 10:52 "sinj " <sinjita.mondal(a)gmail.com> wrote in message news:hfmm3e$h5m$1(a)fred.mathworks.com... >i want to integrate a function which is > y=(1/10^(-8)).*(sinc(w*10^(-8)/2).*(exp(-w*10^(-8)/2).*exp(j*w*t))); > > i am using the code > I1=[]; > t1=[eps:1e-9:1e-6]; > for t=eps:1e-9:1e-6 > I=quadv(@(w)abc2(w,t),eps,1e9); > > end > plot(t1,I1) > > but its not working and showing error > > what could be the error? We can't tell -- you didn't tell us what error message you're receiving, nor did you show us the contents of the abc2 function. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: perfcurve Next: xPC Target DMM-32DX-AT A/D Driver problem. |