我正在尝试为文本输出添加超链接。我有以下几行文字:
text_msg1 = ['Detected Door Alarm sensor trips'];
text_msg2 = ['Please click on link to view trends'];
text_msg3 = [' http://www.google.com '];
text = strcat(text_msg1,'.',text_msg2,':',text_msg3);
当我打印文本时,网址不会显示为超链接。相反,它显示为纯文本。我尝试使用以下技巧来显示超链接。但这仅适用于命令行。
text_msg3 = '<a href="matlab:web(''https://www.google.com/'');">Link</a>';
但是,该链接仅适用于命令行。我有一个应用程序向技术人员发送短信。电子邮件中的文本不显示超链接。我不知道如何在这个论坛上分享这个应用程序。
答案 0 :(得分:0)
不幸的是,像您正在使用的HTML超链接在图中根本不起作用。但是,可以使用某些脚本重新创建超链接的功能。 Here is one example of that。 Here's another possibility that makes use of the same premise。