- Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
- Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
- Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support so we can investigate.
Doc links no longer work
237 次查看(过去 30 天)
显示 更早的评论
I wrote a toolbox sometime ago. It had voluminous documentation. This used to work: doc AETNA. It would bring up a window with the documentation, and clicking on provided links would lead to further information.
This is now broken. How do I get back the previous behavior?
14 个评论
Paul
2024-11-16,5:22
Yes, the doc page in 2024b does imply that Contents.m is still supported. The 2024b release notes talk about the removal of the doc browser, but makes no mention of any implications on Contents.m functionality. Of course, even if that's an issue for 2024b it doesn't explain why you're also having problems with 2024a.
When I tried doc myfolder in 2024a, the Contents opened in a window like you showed above, and when I clicked a link for a file, that same window transitioned to the help for that file, i.e., not tabbed browsing. I only mention this because you stated above that in 2024a "(no further tabs are opened)" in case there's a difference between what I'm seeing now and what you used to see in prior versions.
回答(3 个)
埃博拉酱
2024-11-15,0:48
编辑:埃博拉酱
2024-11-18,9:55
This should be a bug. According to Contents.m's documentation, it should work well with the doc command.
If this feature is very important to you, I recommend that you contact technical support. Or you can step through the doc command in both the old and new versions of MATLAB to observe the differences, and then modify the new version of the code.
Update 20241118:
My technical suppoert replied:
This is a regression in the doc command in R2024b. Doc on a folder with a Contents.m file is not currently working correctly.
As a workaround, the undocumented function "helpwin" can be used instead of doc for these folders.
3 个评论
Steven Lord
2024-11-15,16:09
Please contact Technical Support directly using this link. They can work with you and/or the developers responsible for the help and documentation systems to determine the root cause and see if there are any workarounds for this problem. [I don't work on the help and documentation systems except as a consumer of the help and doc.]
Matt J
2024-11-15,18:06
编辑:Matt J
2024-11-15,18:11
I experienced this and found it was because of name conflict between one of my user-authored mfiles and a MathWorks-authored mfile that had been introduced in a newer Matlab version. Either matlabrc.m or some other startup Mcode made use of the command and, because it was using my version instead of the MathWorks-authored version, failed to set up properly.
The solution to getting doc running properly would be to make sure all of your user-authored mfiles are below MathWorks-authored mfiles in the path. However, this means your version of the mfile command will be shadowed. If your personal code depends on this command, you could probably track it down by running it in the debugger and waiting for a crash.
5 个评论
Matt J
2024-11-15,21:29
编辑:Matt J
2024-11-15,21:31
@Paul It's too long ago. I wouldn't be able to reconstruct the troubleshooting steps. I imagine if you create a startup.m file and insert,
dbstop if caught error
and then relaunch Matlab, it might be a way to trap Matlab startup problems, even if that wasn't precisely what I did.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!