function call,,,,getting error
Mostrar comentarios más antiguos
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
Respuestas (1)
Oleg Komarov
el 16 de Feb. de 2011
0 votos
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'.
Oleg
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!