| Contents | Index |
cdflib.setStageCacheSize(cdfId,numBuffers)
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 = 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 cdfIdThis 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.

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |