Developt matlab to website ??

20 visualizaciones (últimos 30 días)
Oman Wisni
Oman Wisni el 7 de Dic. de 2018
Comentada: Oman Wisni el 29 de Jul. de 2023
Hi, I have finished testing the data, I want to display the results through the website, but the results I want to display are the following schemes:
image input (web) -> processing in matlab -> output (web).
My answer is, what should I do for it? Which one code should I package? from preprocessing image and code for testing ?
please help me, thank you
  4 comentarios
Rik
Rik el 8 de Dic. de 2018
GNU Octave is a program with mostly Matlab compatible syntax. For simple projects you can use them interchangeably.
I can imagine it would be a little bit easier to integrate Octave into your website than Matlab would be. I don't have the experience to give you more details about how to do that integration.
A last note: as this website is maintained by Mathworks, it is discouraged to ask questions that only apply to Octave. It is fine if your question is directly applicable to Matlab as well.
Oman Wisni
Oman Wisni el 8 de Dic. de 2018
Thank you sir, I'm trying and finding a way to make it.

Iniciar sesión para comentar.

Respuesta aceptada

Steven Lord
Steven Lord el 8 de Dic. de 2018
If you're using release R2018a or later you could use a web app.
  1 comentario
Oman Wisni
Oman Wisni el 22 de En. de 2019
Thank you for all answers from this forum .
I did it, what I want, I got it.
Image input(web)-> processing(matlab)-> information&output image(web).
is Done.. Thank you:)

Iniciar sesión para comentar.

Más respuestas (1)

Stephen
Stephen el 29 de Jul. de 2023
To achieve the desired functionality of displaying results through a website with the following flow: image input (web) -> processing in MATLAB -> output (web), you'll need to create a web application that can interact with MATLAB for image processing. Below, I'll outline the steps you can follow:
  1. Set up the web application: Choose a web development framework to build your website. Common choices include Flask (Python-based), Express (Node.js-based), or Django (Python-based). Select the one you are most comfortable with.
  2. Create the frontend: Design and implement the web pages where users can upload their images. You can use HTML, CSS, and JavaScript for this part. Add a form element to the webpage to allow users to upload images.
  3. Handle image upload: In your web application backend, implement the code to handle the image upload. When users upload an image, the server should receive the image file.
  4. Call MATLAB for image processing: To interact with MATLAB from your web application, you can use the MATLAB Engine API for Python (if you're using Flask) or MATLAB Engine API for Node.js (if you're using Express). These APIs allow you to call MATLAB functions from your backend code.You'll need to write the image processing code in MATLAB. This code should take the uploaded image, process it according to your requirements, and generate the output.
  5. Save and serve the processed image: Once the MATLAB processing is complete, save the output image on your server or in a specific directory. Then, serve this processed image to the user through the web interface.
  6. Update the web page with the processed image: Update the frontend code to display the processed image on the webpage. You can achieve this by either replacing the image or creating a new section on the page to show the processed result.
  7. Package the code: Package both the frontend and backend code together to deploy your web application on a server or hosting service.
Remember, you'll need to have MATLAB installed on the server where your web application will run, and you should ensure the MATLAB Engine APIs are set up correctly on that server.
  1 comentario
Oman Wisni
Oman Wisni el 29 de Jul. de 2023
Yes sir, thank you for your answer. I have done and I do like your steps.

Iniciar sesión para comentar.

Categorías

Más información sobre Application Deployment en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by