From: "CyberFrog" <>
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$>
Reply-To: "CyberFrog" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1278326043 18540 (5 Jul 2010 10:34:03 GMT)
NNTP-Posting-Date: Mon, 5 Jul 2010 10:34:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1352511
Xref: comp.soft-sys.matlab:650419


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.