FunctionApproximation.LUTMemoryUsageCalculator class

Package: FunctionApproximation

Calculate total memory used by lookup table blocks in a model

Description

The FunctionApproximation.LUTMemoryUsageCalculator class helps to calculate the total memory used by all lookup table blocks, including 1-D Lookup Table, 2-D Lookup Table, and n-D Lookup Table, used in a model.

Construction

calculator = FunctionApproximation.LUTMemoryUsageCalculator() creates a FunctionApproximation.LUTMemoryUsageCalculator object. Use the lutmemoryusage method to calculate the memory used by all lookup table blocks in a model.

Methods

lutmemoryusageCalculate total memory used by lookup table blocks in a model

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects (MATLAB).

Examples

collapse 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.

load_system('sldemo_fuelsys')
lutmemoryusage(calculator, 'sldemo_fuelsys')
ans =

  6×1 table

                                                                                                     MemoryUsage
                                                                                                     ___________

    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