Explanation

The web function currently opens external sites using your system browser by default, unless configured otherwise in the MATLAB Web Preferences. For a site that opens in the system browser, the returned handle or URL will be empty.

In a future release, the web function will open sites only in the system browser. Therefore, MATLAB will produce an error if your code contains a web syntax that returns a handle or URL.


Suggested Action

Remove the handle and URL output arguments of the web function. Consider using the '-browser' option to open all pages in your system browser. This table shows some examples of how you can update your code.

Before After
[stat,h] = web('https://www.mathworks.com');   stat = web('https://www.mathworks.com','-browser');
[stat,h,url] = web('https://www.mathworks.com');   stat = web('https://www.mathworks.com','-browser');