Whenever I try to generate an M code from a figure (file -> Generate Code), any simple one, it keeps giving me this error:
Error defnining waitbarOutput argument "h" (and maybe others) not assigned during call to "waitbar".Error in makemcode (line 94) hwait = waitbar(.1,...Error in filemenufcn (line 58) makemcode(hfig,'Output','-editor');Error while evaluating Menu Callback.
Even when I don't define any argument to the variable h, I still receive it. I have tried uninstalling and reinstalling Matlab, and it still gives me the same issue. I'm not exactly sure what is wrong since I don't believe I have changed any of the default settings used for functions and such. Any assistance would be greatly apppreciated.
Best Answer