I have just found a workaround.
The following lines are from the above technical solution 1-19J5C: How do I set a proxy server to use with the URLREAD and URLWRITE functions in MATLAB? :
if isdeployed
jobj = com.mathworks.mlwidgets.html.HTMLPrefs;
setUseProxy(jobj,1)
setProxyHost(jobj,'HostName')
setProxyPort(jobj,'Port')
end
In fact we could write these lines as follows:
if isdeployed
com.mathworks.mlwidgets.html.HTMLPrefs.setUseProxy(true)
com.mathworks.mlwidgets.html.HTMLPrefs.setProxyHost('HostName')
com.mathworks.mlwidgets.html.HTMLPrefs.setProxyPort('Port')
end
And these lines work within R2010a and R2010b .