Path: news.mathworks.com!not-for-mail
From: Devdatt Lad <Devdatt.Lad@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: subsystem as function
Date: Tue, 24 Jun 2008 08:54:42 -0400
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <g3qqqi$1rv$2@fred.mathworks.com>
References: <g3ptp6$5gt$1@fred.mathworks.com>
NNTP-Posting-Host: ladd.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1214312082 1919 144.212.111.18 (24 Jun 2008 12:54:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 24 Jun 2008 12:54:42 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
In-Reply-To: <g3ptp6$5gt$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:475624



Ketan wrote:
> What I want is that if I make a change (some parameter) in 
> one subsystem, all other subsystem in the simulink should 
> change accordingly. 

Identify all the parameters of the subsystem in question that can affect 
other subsystems. Make them mask parameters for that subsystem. Now, in 
the mask initialization callback insert appropriate MATLAB code that 
will change other subsystems accordingly using the following functions:

help find_system
help set_param
help get_param

-- 
Devdatt Lad
The MathWorks, Inc.