Can you please explain more about the workflow you are trying to achieve? What is the error message you are receiving?
One possible reason for the error could be that you are passing "fnum" to FIGURE. If you want the value inside "fnum" to be passed to the FIGURE you can do something like this:
figHandle = figure(fnum(1));
Hope this helps.