Matlab Yahoo! Weather Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: yweather.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Amit Belani (View more)

Matlab Yahoo! Weather script description:




Publisher review:
Yahoo! Weather - Get location specific weather data from Yahoo! Weather YWEATHER(LOCATION) queries the Yahoo! Weather RSS feed for the specified location, and returns a struct containing the queried information.The first input argument LOCATION can be one or more (U.S.) ZIP Codes or Location IDs. It can be a string, a vertical char array, or a vertical cell array of strings. To determine s Location ID, visit http://weather.yahoo.com/ and browse or search for the relevant location(s).The second argument UNIT is optional, and can be either 'f' for Fahrenheit or 'c' for Celsius. It can be a single char string, a vertical char array, or a vertical cell array of strings. Yahoo! Weather's default value for UNIT is 'f'.For more information about the RSS feeds and the data contained within them, visit http://developer.yahoo.com/weather/.Data is acquired in XML format, after which it is converted into a struct using the xml_parse function. This function is available in the XML Toolbox by Marc Molinari on the MATLAB Central File Exchange (File ID 4278).EXAMPLES:Example 1: Using a ZIP Code.yweather('10001') returns a 1x1 struct having fields (among others):yweather_location.city: 'New York'yweather_atmosphere.humidity: 50yweather_astronomy.sunrise: '6:06 am'item.yweather_condition.temp: 35item.yweather_condition.date: 'Thu, 16 Mar 2006 2:51 am EST'Example 2: Using a Location ID and (optional) unit.yweather('UKXX0085','c') returns a 1x1 struct.Example 3: Using a cell array of three locations.yweather({'90028';'14850';'CAXX0301'}) returns a 3x1 struct.Example 4: Using a char array of two ZIP Codes.yweather(['56711';'33040']) returns a 2x1 struct.Example 5: Using a cell array of three locations, in degrees Celsius.yweather({'98381';'USCA0715';'04652'},'c') returns a 3x1 struct.Example 6: Using a cell array of two locations, in variable units.yweather({'27949';'UKXX0061'},{'f';'c'}) returns a 2x1 struct.
Matlab Yahoo! Weather is a Matlab script for Development Tools scripts design by Amit Belani. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5