Default Hyperlink display for getReport
Show older comments
MATLAB doc indicates that there is an ability to set the parameter, hlink, of the function getReport to the value of 'default' which will tell the function to honor the command window default for displaying hyperlinks. How do I set the default for the command window?
Thanks,
Dan

Answers (1)
TED MOSBY
on 8 May 2025
Hi,
As far as I understand your question, you want to configure the default value of 'hlink' without changing the flag in 'getReport'.
I found a command:
feature('HotLinks', true)
After setting it to true; now, the 'default' choice simply means “whatever the Command Window is configured to do right now”.
Here is the link: https://undocumentedmatlab.com/articles/the-hotlinks-feature
I tried it with an example:
- I first used the above command in the MATLAB command window
- Then just ran the script below:
me = MException('demo:oops','Something went wrong');
try
throw(me)
catch ME
txt = getReport(ME,'extended','hyperlinks','default');
disp(txt)
end
The output looked like this:

Whereas when I set 'Hotlinks' to false, I get this output after running the script:

Hope this is what you were looking for!
Categories
Find more on Noncentral t Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!