Skip to Main Content Skip to Search
Product Documentation

cdflib.setStageCacheSize - Specify number of staging cache buffers for Common Data Format (CDF) file

Syntax

cdflib.setStageCacheSize(cdfId,numBuffers)

Description

cdflib.setStageCacheSize(cdfId,numBuffers) specifies the number of staging cache buffers for a Common Data Format (CDF) file. For information about CDF cache schemes, see the CDF User's Guide.

cdfId identifies the CDF file. numBuffers is a numeric value that specifies the number of buffers.

Examples

Open the example CDF file and specify the number of cache buffers used.

cdfId = cdflib.open('example.cdf');

% Get current number of staging cache buffers
size = cdflib.getStageCacheSize(cdfId)

size =

   125

% Specify new cache size value.
cdflib.setStageCacheSize(cdfId, 200)

% Get size again.
size = cdflib.getStageCacheSize(cdfId)

size =

   200

% Clean up
cdflib.close(cdfId)

clear cdfId

References

This function corresponds to the CDF library C API routine CDFsetStageCacheSize. To use these functions, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site. For copyright information, see the cdfcopyright.txt file.

See Also

cdflib.getStageCacheSize

Tutorials

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS