Developt matlab to website ??

조회 수: 20 (최근 30일)
Oman Wisni
Oman Wisni 2018년 12월 7일
댓글: Oman Wisni 2023년 7월 29일
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
Rik
Rik 2018년 12월 8일
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 2018년 12월 8일
Thank you sir, I'm trying and finding a way to make it.

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2018년 12월 8일
If you're using release R2018a or later you could use a web app.
  댓글 수: 1
Oman Wisni
Oman Wisni 2019년 1월 22일
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:)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Stephen
Stephen 2023년 7월 29일
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
Oman Wisni
Oman Wisni 2023년 7월 29일
Yes sir, thank you for your answer. I have done and I do like your steps.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by