Prev: using matlab(simulink)can we generate anykind of code i.e c,verylog,mcode,etc
Next: Simscape language question
From: Surbhi Razdan on 7 Apr 2010 03:33 How can integration over a discetre interval be done using MATLAB?
From: Torsten Hennig on 7 Apr 2010 02:45 > How can integration over a discetre interval be done > e using MATLAB? What is 'integration over a _discrete_ interval' ? Best wishes Torsten.
From: Steven Lord on 7 Apr 2010 09:49
"Surbhi Razdan" <surbhi_bhan(a)gmail.com> wrote in message news:hphcfk$o1m$1(a)fred.mathworks.com... > How can integration over a discetre interval be done using MATLAB? If you mean you want to integrate a function numerically over a finite interval, use QUADGK, QUAD, or QUADL. If you mean you want to integrate a function numerically over a 2D or 3D region look at QUAD2D, DBLQUAD, or TRIPLEQUAD. If you want to integrate a function symbolically and have Symbolic Math Toolbox available, use INT. If you just have data representing the values of a function at certain locations in your interval, use TRAPZ. If you mean something else, please clarify what you're looking to do. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ |