Function definitions are not permitted in this context?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
I got this error and my version is 2016b. I even tried changing the m-file name but of no use.The code is attached,do I need to modify it?
댓글 수: 2
Guillaume
2018년 10월 2일
The code you have posted includes the line:
% Copyright 2013 Cranfield University
Do you have authorisation from the copyright holder to reproduce the code?
Walter Roberson
2018년 10월 3일
Please do not close questions that have an answer.
답변 (1개)
Guillaume
2018년 10월 2일
0 개 추천
Pre-R2016b you would get this error if you had local functions in a script m file. Post-R2016b, I'm not sure what can trigger it (function before a classdef is one, but that's not the case here). In any case, I don't get that error with the m file you've included.
However, looking at the code, it's clearly been modified since it checks for the numbers of inputs, yet doesn't accept any.
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!