Imbedding interactive 3D plots into a website

33 views (last 30 days)
Hi everyone. I recently started getting into building websites using Django in Python. But I was wondering if there is a way to imbed a MATLAB 3D surf plot into my website? If not, any rother ways on how interactive MATLAB plots may put on websites? I dont want to Imbed Python plots for specific reasons.

Accepted Answer

Sugandhi
Sugandhi on 24 Apr 2023
Hi Ali Almakhmari,
I understand that you want to embed a MATLAB 3D surf plot into website.
Yes, there are possible ways you can embed MATLAB plots, including 3D surf plots, into your website. Here are some options:
  1. MATLAB Web App Server: MATLAB provides a feature called MATLAB Web App Server, which allows you to deploy MATLAB apps as web applications. You can create a MATLAB app that generates the 3D surf plot you want, and then deploy it as a web application using the MATLAB Web App Server. Once deployed, you can embed the generated web app into your website using an iframe or a hyperlink.
  2. MATLAB to Web APIs: MATLAB also provides support for creating web APIs using MATLAB Production Server, which allows you to expose MATLAB functions as RESTful APIs. You can create a MATLAB function that generates the 3D surf plot you want, expose it as a web API using MATLAB Production Server, and then call the API from your website using JavaScript or other web technologies. This way, you can dynamically generate and display the MATLAB plot on your website.
  3. MATLAB Plotly: MATLAB has built-in support for Plotly, a popular interactive plotting library. You can use MATLAB to generate a 3D surf plot using the Plotly library, and then embed the generated plot into your website using Plotly's embed functionality. Plotly provides various embedding options, including embedding the plot as a standalone HTML file or embedding it directly into a webpage using JavaScript.
For more understanding kindly go through the following link –

More Answers (0)

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!