Missing values using 'websave'

조회 수: 1 (최근 30일)
Vamshi Krishna Gudipati
Vamshi Krishna Gudipati 2019년 11월 20일
댓글: Vamshi Krishna Gudipati 2020년 1월 27일
Hi,
I am using websave function to extract data from a website and write into a text file. However some of the numerical values are retrieved as 0.0 inspite of a non-zero value on the actual website. Below are screen shots of (1) text file with incorrect retrieved values (highlighted in yellow) (2) from the actual website.
Could someone please help?
Following is the code that I am using
options = weboptions('Timeout', Inf ,'ContentType', 'text');
url = 'https://earthquake.usgs.gov/nshmp-haz-ws/hazard/E2014B/WUS/-118/34/any/259';
HC = websave('Hazard_curve.txt', url ,options);
Text file screenshot
Capture.JPG
Webpage screenshot
Capture1.JPG

답변 (1개)

Kritika Bansal
Kritika Bansal 2020년 1월 17일
Hi,
I tried running your code in MATLAB Online R2019b and it works fine. I am able to see the data correctly.
webScript.PNG
  댓글 수: 1
Vamshi Krishna Gudipati
Vamshi Krishna Gudipati 2020년 1월 27일
Thanks for your answer. I was able to fix the above issue by restarting my computer.

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

카테고리

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

태그

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by