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”.
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');
txt = getReport(ME,'extended','hyperlinks','default');
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!