21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

postglobalplot<br />

If Outtype is 'handle', postglobalplot returns a vector of handles to the plots.<br />

If Outtype is 'postdata', the function returns a post data structure. The post data<br />

structure has the same format as the output from posteval.<br />

The notation colorspec in the value column denotes a color specification. See<br />

postplot for a description of this specification.<br />

The property Phase is described in posteval.<br />

Examples<br />

Example: Solve the Lotka-Volterra equations for two populations r and f<br />

clear fem<br />

fem.ode.dim={'r','f'};<br />

fem.ode.f={'r*(1-2*f)-rt','-f*(3-r)-ft'};<br />

fem.ode.init={'10','1'};<br />

fem.ode.dinit={'0','0'};<br />

fem.geom=solid1([0,1]);<br />

fem.mesh = meshinit(fem);<br />

fem.xmesh = meshextend(fem);<br />

fem.sol = femtime(fem,'tlist',[0,1]);<br />

% Plot the solutions r and f with legend<br />

postglobalplot(fem,{'r','f'},'linlegend','on');<br />

% Plot the r population versus the f population<br />

postglobalplot(fem,'r','linxdata','f')<br />

Compatibility<br />

See Also<br />

This function was introduced in <strong>COMSOL</strong> Multiphysics 3.2a.<br />

postcrossplot, postinterp<br />

341

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!