Example: marketing
MATLAB 數值微積分與微分方程式求解
MATLAB x = a x = b f(x) ( )baf x dx (a) (b) f(x) trapzEx:>>x=[0 10 20 30 40];>>y=[ ]; >>area=trapz(x,y) % area = = trapz(x, y)x : x y : f(x) ( ) f(x) quad ,quadlI = quad(@fun, a, b)I = quadl(@fun, a, b)( )( )fun function m-file a b Ex:1. edit y=fun(x)y=exp(-x).*cos(x);2. ( MATLAB Command Window)area=quadl(@fun,0,1) area=quadl( exp(-x).)
[t, y] = ode45(@fun, tspan, y0, options, p1 , p2 ) function dydt = fun(t, y, p1 , p2 ) dydt(1) = < Insert a function of t and/or y here. >
Download MATLAB 數值微積分與微分方程式求解
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: