12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Figure PropertiesUsing theOpenGLRendererThe figure Renderer property supports a new value that enables <strong>MATLAB</strong> touse OpenGL as the renderer. The command to enable OpenGL on the currentfigure is:set(gcf,'Renderer','OpenGL')OpenGL increases performance for most 2-D and 3-D graphs drawn with<strong>MATLAB</strong>.Hardware vs. Software OpenGL ImplementationsThere are two kinds of OpenGL implementations – hardware and software.The hardware implementation makes use of special graphics hardware toincrease performance and is therefore significantly faster than the softwareversion. Many computers have this special hardware available as an option ormay come with this hardware right out of the box.Software implementations of OpenGL are much like the ZBuffer renderer thatis available on <strong>MATLAB</strong> version 5.0, however, OpenGL generally providessuperior performance to ZBuffer.OpenGL AvailabilityOpenGL is available on all computers that <strong>MATLAB</strong> runs on with theexception of VMS. <strong>MATLAB</strong> automatically finds hardware versions of OpenGlif they are available. If the hardware version is not available, then <strong>MATLAB</strong>uses the software version.The software versions that are available on different platforms are:• On UNIX systems, <strong>MATLAB</strong> uses the software version of OpenGL that isincluded in the <strong>MATLAB</strong> distribution.• On MS-Windows NT 4.0, OpenGL is available as part of the operatingsystem.• On MS-Windows 95, OpenGL is included in the Windows 95 OSR 2 release.If you do not have this release, the libraries are available on the Microsoft ftpsite.Microsoft version is available at the URL:ftp://ftp.microsoft.com/softlib/mslfiles/opengl95.exe2-182

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

Saved successfully!

Ooh no, something went wrong!