MATLAB: How should I configure the ‘Publishing Options’ so that I don’t get an error when user input is required

clinical reportpublishinguser input

I have a code that requires user input. I'm 'publishing' the report that is created after the user input with the 'publishing options'. I've excluded the code from being included, for example. But every time I run the publishing command, I get an error as soon as the code gets to the first portion of where user input is needed. Why?
The error that I receive:
Cannot call INPUT from EVALC.

Best Answer

Perhaps you could use an inputdlg to ask for user feedback?
txt = inputdlg('input');
Related Question