I want to ask about function M-file in MATLAB: if I want input from the user, how do I do that?
Can I write the input directly in the function M-file?
Or do I have to write an input statement in a script file and return to the function file to write another statement?
inputfunction? That might be what you want. Typehelp inputto see how it works