Default Hyperlink display for getReport
Afficher commentaires plus anciens
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

Réponses (1)
TED MOSBY
le 8 Mai 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!
1 commentaire
Dan
le 8 Mai 2025
Catégories
En savoir plus sur Noncentral t Distribution dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!