Matlab:成功解决Function definition are not permitted at the prompt or scripts 目录 解决问题 解决方法 解决问题 Function definition are not permitted at the prompt or scripts 解决方法 在提示符或脚本中不允许函数定义,所以,改在主函数内定义即可!