This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Class: FunctionApproximation.LUTMemoryUsageCalculator
Package: FunctionApproximation

Calculate total memory used by lookup table blocks in a model


memory = lutmemoryusage(calculator,model)


memory = lutmemoryusage(calculator,model) calculates the memory used by all lookup table blocks in the specified model.

Input Arguments

expand all

Model containing lookup table blocks, specified as a character vector.

Data Types: char

Output Arguments

expand all

Table displaying the memory, in bits, used by each lookup table block in the specified model.


expand all

Use the FunctionApproximation.LUTMemoryUsageCalculator class to calculate the total memory used by lookup table blocks in a model.

Create a FunctionApproximation.LUTMemoryUsageCalculator object.

calculator = FunctionApproximation.LUTMemoryUsageCalculator

Use the lutmemoryusage method to get the total memory used by the lookup table blocks in the sldemo_fuelsys model.

lutmemoryusage(calculator, 'sldemo_fuelsys')
ans =

  6×1 table


    sldemo_fuelsys/fuel_rate_control/airflow_calc/Pumping Constant                                      1516    
    sldemo_fuelsys/fuel_rate_control/control_logic/Throttle.throttle_estimate/Throttle Estimation       1516    
    sldemo_fuelsys/fuel_rate_control/control_logic/Speed.speed_estimate/Speed Estimation                1436    
    sldemo_fuelsys/fuel_rate_control/control_logic/Pressure.map_estimate/Pressure Estimation            1364    
    sldemo_fuelsys/fuel_rate_control/airflow_calc/Ramp Rate Ki                                           192    
    Total                                                                                               6024    

Introduced in R2018a