HOW to import data to MATLAB
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sese
am 12 Nov. 2012
Kommentiert: Rainaire Hansford
am 8 Sep. 2020
Hello Guys ....
I have question for you guys today.. so if you ready let's begin.
i have this website and i want to import the temperature for today in my city which is "VIENNA", and save my data ( temperature) to file in my computer.
my sincerely
1 Kommentar
Jan
am 14 Nov. 2012
Please avoid double posting, because it wastes the time of the voluntary helpers. See http://www.mathworks.com/matlabcentral/answers/53476-how-to-getting-data-from-url.
Akzeptierte Antwort
Thomas
am 12 Nov. 2012
try this
syt=urlread('http://weather.yahoo.com/austria/vienna/vienna-551801/');
startvalue=strfind(syt,'day-temp-current temp-f');
temperature=syt(startvalue+26:startvalue+27)
5 Kommentare
Jan
am 14 Nov. 2012
You are welcome, sese. Please show what you have tried so far to get the Humidity and explain, which problems occurred. It should be possible to modify Thomas' example.
Rainaire Hansford
am 8 Sep. 2020
Excuse me guys but I try to use this code and i didnt get any values. Also the website doesn't seem to work. Can this work on google weather?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis 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!