displayWebPage - display a webpage in Matlab figure or panel
Version 1.0.0 (45,2 ko) par
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
Citation pour cette source
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. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2022a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0 |
|