displayWebPage - display a webpage in Matlab figure or panel

版本 1.0.0 (45.2 KB) 作者: Yair Altman
Display a web-page URL in a Matlab figure or UI container (panel, tab etc.), updating the displayed browser contents as needed.
114.0 次下载
更新时间 2022/10/1

查看许可证

Syntax:
hContainer = displayWebPage(url, parent)
Description:
displayWebPage() with no input parameters displays the UndocumentedMatlab.com homepage in a figure window.
displayWebPage(url) displays the specified webpage in a figure window.
displayWebPage(url, title) displays the specified webpage in a figure window that has the specified title, creating a new figure if no such figure is found. If the figure is found and already contains an embedded browser, its contents are updated with the new web-page. Otherwise, a new browser is added to the figure, and then loads the specified webpage.
displayWebPage(url, hContainer) displays the specified webpage in the specified container handle (figure, uipanel, uitab, etc.). If the specified handle is not valid, the webpage is displayed in the system browser.
hContainer = displayWebPage(...) returns the browser's container handle
Usage examples:
displayWebPage % display UndocumentedMatlab.com homepage in a figure window
displayWebPage('google.com') % display google.com in a figure window
displayWebPage('http://google.com', 'Browser') % display in 'Browser' figure
displayWebPage('http://google.com', uipanel) % display in specified panel
hContainer = displayWebPage('http://google.com'); % return the figure handle
Note:
In some cases when the specified webpage URL is invalid, the browser might hang, causing excessive CPU load. Closing/deleting the browser container (e.g. its figure window) will dispose the browser and restore CPU to normal.
Additional information: https://UndocumentedMatlab.com
See also: the builtin web function

引用格式

Yair Altman (2024). displayWebPage - display a webpage in Matlab figure or panel (https://www.mathworks.com/matlabcentral/fileexchange/118465-displaywebpage-display-a-webpage-in-matlab-figure-or-panel), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2022a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0