how to change function to a normal script

i have function i want to change it to a script ..... but it have something could nargin which it in if statesman ...what should i do ???

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 25 Dec 2013
Edited: Azzi Abdelmalek on 25 Dec 2013
Remove the if statement relative to nargin or nargout. And remove the header
function output=fcn(input)

More Answers (0)

Categories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!