2%> Return a scalar MATLAB logical that is ``
true``
if and
3%> only
if the input URL
string exists in the world wide web.<br>
5%> \param[in] url : The input scalar MATLAB
string
6%> whose existence as a URL is to be tested.<br>
9%> ``itis`` : The output scalar MATLAB logical that is ``
true``
if and
10%> only
if the input URL
string exists in the world wide web.<br>
15%> itis = pm.web.isurl(url)
20%> \include{lineno} example/web/
isurl/main.m
22%> \include{lineno} example/web/
isurl/main.out.m
27%> \JoshuaOsborne, May 22 2024, 7:50 PM, University of Texas at Arlington<br>
28%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
29%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
33 urlobj = java.net.URL(url); %create the url
object
35 %%%% Get the proxy information
using the MATLAB proxy API.
37 proxy = com.mathworks.webproxy.WebproxyFactory.findProxyForURL(urlobj);
39 %%%% Open a connection to the urlobj.
42 urlConnection = urlobj.openConnection;
44 urlConnection = urlobj.openConnection(proxy);
47 %%%% Try to start the input stream.
49 inputStream = urlConnection.getInputStream;
function isurl(in url)
Return a scalar MATLAB logical that is true if and only if the input URL string exists in the world w...