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

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 25 de Dic. de 2013
Editada: Azzi Abdelmalek el 25 de Dic. de 2013

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Argument Definitions en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Dic. de 2013

Comentada:

el 25 de Dic. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by