Why does it appear "Error: Function definitions are not permitted in this context" when I run the following function file?
Show older comments
I have two files for running:
The first one is a script I named preambulo.m which runs ok. The second one is a function which I named final_project_mc.m, when I run this file, it appears the error that I mentioned in the initial question, and I don't know why this is happening. In order to do this exercise you need to run first preambulo.m and then final_project_mc. M.
I would really appreciate any help with this problem.
Accepted Answer
More Answers (1)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!