textscan an url file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
AA
am 14 Feb. 2017
Beantwortet: Walter Roberson
am 14 Feb. 2017
Hi, I have the following url (see below). Once I get it I want to use textscan in such a way that it gives me all the dates which are between the symbols '<td>date</td>'.
url = [ 'https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=msft&type=10-q&dateb=&owner=exclude&count=100' ];
csv = native2unicode(webread(url).');
data = textscan(csv, '%s');
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Feb. 2017
You cannot do that. However you can urlread() the content into a string and then textscan the string. The first parameter to textscan can be a string instead of a fileid
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files 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!