Yes, I am using a GUIDE GUI. My program has upto eight conditions to process. To save lines of code I wanted to run a function inside the callback to process the conditions. I'm trying to call the function using:
[output]=function_name(input1,input2,...,inputn)
If I remove the function and instead enter the lines of code from the function into the callback it works fine. I looked at function handles but did not have any luck. Hope this makes more sense... any ideas what I can do?