HPRINTF is just like fprintf except that hypertext links are not highlighted in the Command Window. It does this by replacing the string href= with HREF=. If the file descriptor is not present as the first argument, the output defaults to the Command Window, just like fprintf.
Note that "help hprintf" can't display the examples properly, because they themselves are highlighted in the command window. Instead, type "hprintf" with no inputs to see them, or "edit hprintf".
See Kristin's blog http://blogs.mathworks.com/desktop/2007/07/09
Tim Davis (2019). hprintf: disable hypertext highlighting (https://www.mathworks.com/matlabcentral/fileexchange/16068-hprintf-disable-hypertext-highlighting), MATLAB Central File Exchange. Retrieved .
Very nice little function, exactly what I was looking for in my comments on Kristin's blog. Thanks.
Last update regressed by accident to prior version. Reposting.
Added an example provided by 'us'.
Added additional features to more precisely mimic "fprintf" (output arguments, check of # of inputs). Added more help. Added examples. And thanks to 'us' for suggestions.