필터 지우기
필터 지우기

How can error "Function definitions are not permitted in this context. " be resolved.

조회 수: 2 (최근 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?

채택된 답변

Walter Roberson
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.
  댓글 수: 1
Scott Williams
Scott Williams 2015년 10월 2일
Hi Walter, That sounds reasonable. I've posted your answer to the file exchange, and await a reply from the user.
Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by