Azzera filtri
Azzera filtri

function call,,,,getting error

1 visualizzazione (ultimi 30 giorni)
KHURRAM
KHURRAM il 16 Feb 2011
hi, i am receiving the following error while i am inserting the function in the statement, can u plz help me to rid out of it??
Function definitions are not permitted at the prompt or in scripts.
please help

Risposte (1)

Oleg Komarov
Oleg Komarov il 16 Feb 2011
You're allowed to define a function only at the beginning of an .m file, then saving it and calling the function as fcn(x,y) at the cmd window or in a script you can get it 'working'.
For more details function or in a comparison with scripts Functions and scripts
Oleg

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by