Embedding Graphs in HTML in MATLAB®

How to embed plotly graphs with an iframe in HTML.


Plotly Studio: Transform any dataset into an interactive data application in minutes with AI. Try Plotly Studio now.

Note: We are retiring documentation for R, MATLAB, Julia, and F# in November 2025. Learn more about this change here.

Plotly graphs can be embedded in any HTML page. This includes MATLAB® dashboards, Wordpress sites, blogs, and more.


For more on embedding Plotly graphs in HTML documents, see our tutorial.