webread is not working or sending an error code

조회 수: 5(최근 30일)
In learning how to use webread the matlab examples and other api endpoints do not work, and an error code is not generated. I am not using a proxy. A direct link to the example in the browser works fine but webread does not seem to work with any api. Is there a product add on I need to buy or something else.
Below is the example code used.
url = 'http://heritage.stsci.edu/2007/14/images/p0714aa.jpg';
rgb = webread(url);
whos rgb
matlab error report on live code: Attempt to execute SCRIPT webread as a function
The matlab function urlread() works fine when tested.
Thank you in advance

채택된 답변

Stalin Samuel
Stalin Samuel 2017년 9월 1일
  • i Think you have saved your file name as "webread.m"
  • If so ,Kindly rename the file
  댓글 수: 3
E Jackson
E Jackson 2017년 9월 1일
Thanks once again, and have a great one.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

범주

Find more on Loops and Conditional Statements in Help Center and File Exchange

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by