My matlab application is for recognize places, buildings. I have the matlab GUI for upload images for testing. After identify the place I want to open a html file through the matlab GUI. Can you please explain me how can I do that?
MATLAB: How to use matlab GUI to brows specific .html file in the same folder
brows .html
Related Solutions
You can launch a web browser or an .html file through MATLAB either by using the WEB command or the DOS command. Here are two ways to launch a web browser using MATLAB:
1. The WEB Command
This launches the URL or html file in the default browser for MATLAB - not Internet Explorer or Netscape, but the browser shipped with MATLAB. The WEB command launches the URL in this browser window. For more information, refer to the MATLAB documentation, using either
help web
or
doc web
at the MATLAB command prompt.
2. Using DOS commands through MATLAB.
The following example launches a new window every time a URL or an html file is called:
a.
dos('explorer http://www.yahoo.com'); dos('explorer test.html');
The following example uses the same explorer window to launch a URL or an html file:
b.
dos('start D:\Applications\Matlab_R12.1\help\search1.html'); dos('start http://www.yahoo.com');
The following example shows how to dynamically generate a URL from MATLAB variables and launch it in the browser:
c.
googleSubSite = {'shopping','wallet','finance'};% launch 3 browser windows or tabs
for i = 1:3dos(['start www.google.com/' googleSubSite{i}])end
If you are planning to launch a web browser through stand-alone code generated using MATLAB, use the DOS command and not the WEB command. (The WEB command uses objects, which are not supported when compiling with the MATLAB compiler.)
The issue in this case is not the result of changing the port number, rather the result of changing from HTTP to HTTPS. An MPS server instance must be specifically configured in order to work using HTTPS. Specifically, to use HTTPS you much generate a certificate chain and private key for your server instance, and then place these PEM files into the appropriate directories as detailed in the doc link here:
If you are running multiple servers on the same machine, the same* certificate (self-signed or CA) can be used across multiple MPS instances *as the Fully Qualified Domain Name goes into the certificate (thus the identifier for that particular physical machine will be a part of the certificate).
If you are doing this on a larger scale with multiple machines and do not want to have to go through the trouble of setting up a certificate for each machine, or are looking to migrate existing HTTP servers to HTTPS then you could also choose to use a Load Balancer. This would mean that the only externally visible end-point would be that of the Load Balancer, and you could configure your MPS servers to just use HTTP. By then setting the Load Balancer's endpoint to HTTPS, you could still maintain the same secure layer between the client and the Load Balancer. This topology works best if all the instances are deploying the same CTF, but even if they do not, then a LB can still be configured and used mostly for authentication.
Best Answer