Developt matlab to website ??

6 ビュー (過去 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 Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by