This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Specify number of staging cache buffers for Common Data Format (CDF) file




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.


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

cdfId ='example.cdf');

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

size =


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

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

size =


% Clean up

clear cdfId


This function corresponds to the CDF library C API routine CDFsetStageCacheSize.

To use this function, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF website.

For copyright information, see the cdfcopyright.txt file.

Was this topic helpful?