Path: news.mathworks.com!not-for-mail
From: "CyberFrog" <domlee55@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: ??? Reference to a cleared variable
Date: Mon, 5 Jul 2010 10:34:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <i0scer$i3c$1@fred.mathworks.com>
Reply-To: "CyberFrog" <domlee55@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1278326043 18540 172.30.248.35 (5 Jul 2010 10:34:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 Jul 2010 10:34:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1352511
Xref: news.mathworks.com comp.soft-sys.matlab:650419

Hi,

I have 2 moules of code whereby module_A feeds in certain inputs to module_B so each function id defined as:

function module_A   
within this module the call to module_B is simply:
module_B(input1, input2, input3)

function module_B(input1, input2, input3)

As you can see to feed in these inputs into a seconf module is easier enough but I do not know how to return these any new inputs generated by module_B into module_A???  Assume the call in A occurs half way down a load of code therefore I would like to feed in new inpust generated from B into A but to then continue down the second hald of code in A.  Obviously I cannot use this same call because it will start the code again when I just want it to continue.

Thanks