Matlab 启动出现 Error using eval: Undefined function 'workspacefunc' for arguments of type 'struct' 的解决办法
Warning: Name is nonexistent or not a directory
先是出现了Warning: Name is nonexistent or not a directory,然后参考CSDN上其他文章,Matlab 启动出现 Warning: Name is nonexistent or not a directory 的解决办法:说edit pathdef.m
然后把warning的目录注释掉,结果重新打开Matlab,出现另一个错误。
Error using eval: Undefined function ‘workspacefunc’ for arguments of type ‘struct’.
参考Matlab Answers:
编辑权限
Windows 10(我是Windows 11):
Using Windows Explorer,
- Right-click the “pathdef.m” file and select “Properties”.
- Go to the “Security” tab.
- Click “Edit…”
- Under “Group or user names”, select the applicable user/group name, or do the following to grant permission for every user:
a. Click “Add".
b. In the “Enter an object name to se