what this error mean
조회 수: 15 (최근 30일)
이전 댓글 표시
plz what this error mean ?
Error: Function definitions are not permitted in this context.
댓글 수: 0
답변 (2개)
Star Strider
2019년 1월 27일
It means that you need to save your function as a seprate function file (a ‘.m’ file with the same name as your function) on your MATLAB search path.
댓글 수: 0
madhan ravi
2019년 1월 28일
When you are using version prior to 2016b a function definition cannot be included in a script (reason of your error) , therefore you need to save it in a separate file with the same name of a a function. Keep in mind you cannot paste a function in command window (in any versions of matlab).
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!