Please help me...Extract data from url and wlswrite

조회 수: 2 (최근 30일)
Jeong_evolution
Jeong_evolution 2016년 10월 30일
댓글: Jeong_evolution 2016년 10월 30일
url is
--------------------------------------------------------
<body
<data seq="0"
<hour3</hour
<day1</day
<temp8.0</temp
<tmx11.9</tmx
<tmn5.8</tmn
<sky3</sky
<pty0</pty
<wfKor구름 많음</wfKor
<wfEnMostly Cloudy</wfEn
<pop20</pop
<r120.0</r12
<s120.0</s12
<ws2.9000000000000004</ws
<wd7</wd
<wdKor북서</wdKor
<wdEnNW</wdEn
<reh57</reh
<r060.0</r06
<s060.0</s06
</data
<data seq="1"
<hour6</hour
<day1</day
<temp6.9</temp
<tmx11.9</tmx
<tmn5.8</tmn
<sky3</sky
<pty0</pty
<wfKor구름 많음</wfKor
<wfEnMostly Cloudy</wfEn
<pop20</pop
<r120.0</r12
<s120.0</s12
<ws2.8000000000000003</ws
<wd7</wd
<wdKor북서</wdKor
<wdEnNW</wdEn
<reh53</reh
<r060.0</r06
<s060.0</s06
--------------------------------------------------------
In url, I want to extract temp data (8.0 ,6.9)
and I wnat to export data (8.0 , 6.9) into excel.
Please help me!!

채택된 답변

Walter Roberson
Walter Roberson 2016년 10월 30일
Per already answered you about this in http://www.mathworks.com/matlabcentral/answers/309736-extract-numbers-from-mixed-string#answer_241254 . You use urlread to grab the string, and then you use the regexp that Per showed.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by