This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % fileName = name of file entered by user as string % precip = precipitation value in cm % precip_cm = precipitation value in cm % precip_in = precipitation value in in % in_cm = conversion factor from in to cm % % Parameters in_cm = 2.54; i % Read daily values of precipitation from precipitation data file (in) precip_in = textread(fileName); p % Convert precipitation values from in to cm precip_cm = precip_in*in_cm; precip = [precip_cm]'; p end % readPrecipFile...
View Full Document
This note was uploaded on 09/28/2009 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell University (Engineering School).
- Fall '05