用 doc 语法调取帮助文档报错,无法打开函数文档

19 visualizzazioni (ultimi 30 giorni)
Haibiao
Haibiao il 11 Lug 2023
Commentato: Haibiao il 12 Lug 2023
使用 doc 语法调取函数的帮助文档时出现下面的报错,函数文档无法打开:
>> doc nnmf
错误使用 fileparts
输入参数太多。
出错 doc (line 94)
cd(fileparts(doclocs{restoredoc_i}));
求助各位这个是哪里出了问题,怎么解决呀,多谢!!

Risposte (1)

Angelo Yeo
Angelo Yeo il 12 Lug 2023
您好
您经历的问题似乎是产品的异常运转。 为了MATLAB的正常运行,请应用以下指南初始化路径和偏好设定。 如果以下方法不能解决问题,那么解决产品不正常运行的唯一办法是重新安装。
右键单击 MATLAB 执行图标,以管理员模式运行 MATLAB,然后在 MATLAB 命令窗口中执行以下命令。
restoredefaultpath
rehash toolboxreset
rehash toolboxcache
sl_refresh_customizations % 请仅在使用Simulink相关产品时运行此生产线。
savepath
prefdir
如果执行每个命令没有问题(警告消息是好的),沿着最后一个命令执行时显示的路径打开目录。 然后关闭 MATLAB。移动到打开目录的父文件夹,将 R20XXX 重命名为 R20XXX_old(Ex. R2020a->R2020a_old)。 然后启动MATLAB。
  1 Commento
Haibiao
Haibiao il 12 Lug 2023
非常感谢,按照您的方法问题顺利解决了!

Accedi per commentare.

Categorie

Scopri di più su 输入命令 in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!