Is urlread2 function limited to specific matlab versions?

1 view (last 30 days)
I use the function without any problem on matlab 2014 but with the following error on 2008b. Is it because it is version specific?
Error: No appropriate method, property, or field getProxy for class com.mathworks.net.transport.DefaultComboTCP.

Answers (1)

Guillaume
Guillaume on 19 Sep 2014
urlread2 is not part of any version of matlab. It looks like you got it off the filexchange.
To make it visible to 2008b, add the path of the folder where you put it ( which urlread2 in 2014 will tell you) to the matlab path (addpath).
  2 Comments
Yucheng
Yucheng on 19 Sep 2014
Thanks Guillaume. Could you elaborate in a bit more details, please?
In 2014: >>wihch urlread2 >>C:\Users\xxx\Documents\Matlab\urlread2.m
In 2008:>>wihch urlread2 >>C:\Users\xxx\Documents\Matlab\urlread2.m
Do you suggest there are additional paths I need to add this function to in 2008?
Guillaume
Guillaume on 19 Sep 2014
Oh, I didn't realise the error came from within urlread2.
Having had a look at the code, it looks like it calls some undocumented internal java functions to configure proxy settings. Most likely, it wasn't implemented in 2008b as proxy configuration within matlab is fairly recent thing.
So it looks like you can't use urlread2 in 2008b.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!