How can error "Function definitions are not permitted in this context. " be resolved.
3 次查看(过去 30 天)
显示 更早的评论
Hi. I've uploaded a file to the file exchange and it works well for me. A person has downloaded the file and has problems with the error described. The file and question is at:
Apparently the error "Function definitions are not permitted in this context" arises after typing:
polarG (0 + 0j, 2 + 1 * j, .1,30, 'r', 1)
When I do this, I get the figure I expect. Could someone please look at the code in question and advise how to fix the source of the error?
0 个评论
采纳的回答
Walter Roberson
2015-10-1
They tried to put that line at the top of the file and then run the result. They need to store the file unchanged and type that line at the command prompt.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!