Problem with getting output from KeyPressFcn
조회 수: 5 (최근 30일)
Hello, I have a KeyPressFcn with two input variables and i would like one output variable.
Example of the code:
h = figure
function outputVar = pushbutton_callback(src,event,var1,var2)
outputVar = var1*var2;
The problem is that outputVar doesn't exist in the workspace afterwards...
I've read the documentation but still as it appears didn't really understand how to work with this function.
Thanks in advance.