不会执行m文件

댓글 수: 1

Walter Roberson
Walter Roberson 2017년 7월 10일
편집: Walter Roberson 2017년 7월 10일
Approximate translation:
How to execute m files
The m file is not executed

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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 7월 10일

0 개 추천

  • You need to have read permission on the .m file to execute it
  • .m files must be named as valid MATLAB identifiers: begin with an Latin alphabetic character A-Z or a-z, after which you can have a mix of alphabetic characters with "arabic" digits 0-9, and underscore . It is not possible to execute a .m file that does not follow this rule
  • .m files will not be executed if they have syntax errors
  • If the .m file is a function that has parameters, you need to go down to the command line and type in the name of the .m file and provide values for the parameters. If you attempt to execute a function by using a menu option or clicking on Execute, then it will fail as soon as it needs a parameter that was not passed in.

카테고리

도움말 센터File Exchange에서 输入命令에 대해 자세히 알아보기

태그

질문:

2017년 7월 10일

답변:

2017년 7월 10일

Community Treasure Hunt

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

Start Hunting!