MATLAB如何在GUI中链接到网页-web函数

web

在浏览器中打开网页或文件

语法

web
web(url)
web(url,opt)
web(url,opt1,...,optN)
stat = web(___)
[stat,h] = web(___)
[stat,h,url] = web(___)

应用:

在系统浏览器中打开网页

url = 'https://www.mathworks.com';
web(url,'-browser')

从系统浏览器发送电子邮件

email = '[email protected]';
url = ['mailto:',email];
web(url,'-browser')

打开HTML文件,获取浏览器句柄,控制关闭等其它功能,请查看帮助文件或中文官网

猜你喜欢

转载自blog.csdn.net/weixin_44153488/article/details/89952107