Unable to launch local server from MATLAB 2015a

조회 수: 3 (최근 30일)
Dark_Knight
Dark_Knight 2024년 5월 31일
답변: Abhaya 2024년 8월 8일
The problem is with MATLAB 2015a.
web('www.google.com') , works fine.
Now I am using a local server to launch a web application, but the webpage is empty, means nothing is loaded.
stat = web('localserver') gives '0' as output argument , means found and started system browser.
com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');
com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLPANEL');
Switching between these two is not helping as well
Also, the same local server works fine in MATLAB 2021a version.
  댓글 수: 3
Dark_Knight
Dark_Knight 2024년 6월 3일
The requirement is that, the local server must run on 2015a
Kalinga
Kalinga 2024년 8월 7일
Can you specify what does 'localserver' mean? or it is just 'localhost'

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

답변 (1개)

Abhaya
Abhaya 2024년 8월 8일
Hi,
I understand you want to launch a web application using a local server.
I am currently utilizing the Python Flask framework to create a server, and I am able to access it successfully. It is possible that the issue you are encountering is due to some configuration discrepancies.
Running the following code in MATLAB 2015a, gives 0 as output and starts system browser with home page selected in the server, as shown in the screenshots below .
stat=web('localhost:8000')
For further understanding, please follow the MathWorks documentation for “web” function.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by