displayWebPage - display a webpage in Matlab figure or panel
Version 1.0.0 (45,2 KB) von
Yair Altman
Display a web-page URL in a Matlab figure or UI container (panel, tab etc.), updating the displayed browser contents as needed.
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
Zitieren als
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. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2022a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |
|