www.gusucode.com > simulinkcoder 案例源码程序 matlab代码 > simulinkcoder/ReusableCodeForSubsystemsSharedExample.m
%% Generate Reusable Code for Subsystems Shared Across Models % This example shows how to configure a reusable library subsystem and % generate a reusable function for a subsystem shared across referenced % models. The result is reusable code for the subsystem, which is generated % to the shared utility folder ( |slprj/target/_sharedutils| ). % % Copyright 2015 The MathWorks, Inc. %% Example Model model='ex_mdlref_ssreuse'; open_system(model); close_system(model);