Hi everybody, I have following situation
function outParameters = Main(inParameters)
h = figure(KeyPressFCN,@WhatPressed);
function WhatPressed(src, evnt)
outParameters = workWith(ProcessedData);
In above version I calculated ProcessedData, but can't pass it into Main program.
What is the simplest way to pass result of calculations from WhatPressed function into Main one?
I know the way how to do this, using GUI with main window and processing of its handle structure and I use it for control of many operations, but in this case I need only to pass a few parameters from WhatPressed function into Main one?
Thanks for constructive ideas