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 ???

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 25 Déc 2013
Modifié(e) : Azzi Abdelmalek le 25 Déc 2013

0 votes

Remove the if statement relative to nargin or nargout. And remove the header
function output=fcn(input)

Plus de réponses (0)

Catégories

En savoir plus sur Argument Definitions dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by