www.gusucode.com > ecoder 案例源码程序 matlab代码 > ecoder/UseCustomStorageClassesDemoExample.m
%% Declare and Interface with Data Using Custom Storage Classes % Custom storage classes allow you to declare and interface with virtually any type of data. This model % shows three of the several predefined custom storage classes provided with Embedded Coder. % In this example, custom storage classes are specified for signals via the "Signal Properties..." dialog % of a line and for parameters via Simulink parameter objects in the MATLAB Workspace. % % Open the example model |rtwdemo_cscpredef|. % Copyright 2015 The MathWorks, Inc. open_system('rtwdemo_cscpredef') %% % * The input signals use the custom storage class |Struct|. % * The constant parameters use the custom storage class |ConstVolatile|. % * The output signals use the custom storage class |BitField|. % % You can use the Custom Storage Class Designer to: % % * Create new custom storage classes % * Reference custom storage classes from other packages % % To launch the Custom Storage Class Designer, type |cscdesigner| at the % command prompt.