Missing values using 'websave'
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vamshi Krishna Gudipati
am 20 Nov. 2019
Kommentiert: Vamshi Krishna Gudipati
am 27 Jan. 2020
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
Webpage screenshot
0 Kommentare
Antworten (1)
Kritika Bansal
am 17 Jan. 2020
Hi,
I tried running your code in MATLAB Online R2019b and it works fine. I am able to see the data correctly.
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!