imread(reading url of an image returned by yahoo search using matlab urlread function)

조회 수: 2 (최근 30일)
I am trying to download images from yahoo using matlab. I have designed a code and now I am facing a problem trying to read the image from the url returned by the function urlread in matlab
Here is the generated url generated by the urlread fucntion
image.motortrend.com%2Ff%2Fwot%2Fwot-part-148-66875%2F60498450%2Bw799%2Bh499%2Bcr1%2Bar0%2FMystery-Vehicle1.jpg
My objective is to parse the image in the url and save it to my local machine using the imwrite function.
But the problem I am facing my program skip the imread function and didnt parse and the save the image to my local machine?
Can someone point the problem here?

채택된 답변

Image Analyst
Image Analyst 2013년 12월 21일
Using the skills you learn here : http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/ you will be able to step through your code and find out why it is skipping the imread statement.
  댓글 수: 4
KnowledgeSeeker
KnowledgeSeeker 2013년 12월 21일
Jan Simon, Thank you very much for your reply. I will try to provide the full function I wrote
Image Analyst
Image Analyst 2014년 1월 23일
편집: Image Analyst 2014년 1월 23일
Not sure what your edit was today. Hopefully over the past month you've learned how to use the debugger like almost everyone else, and that's why you never attached your m-file. Really, it's not hard at all. You can get by with simply knowing what F5, and F10 and F11 do, how to look in the workspace panel at the variable values, and how to click in the left margin to create a red spot which means it's a breakpoint and the execution will stop there. Those are the only essentials. I think you can handle it.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by