필터 지우기
필터 지우기

textscan an url file

조회 수: 1 (최근 30일)
AA
AA 2017년 2월 14일
답변: Walter Roberson 2017년 2월 14일
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');

채택된 답변

Walter Roberson
Walter Roberson 2017년 2월 14일
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개)

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by