displayWebPage - display a webpage in Matlab figure or panel
Versione 1.0.0 (45,2 KB) da
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
Cita come
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. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2022a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0 |
|