prob06 - Homework Problems Week 6 440:127 Fall 2011 S. J....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework Problems – Week 6 440:127 – Fall 2011 – S. J. Orfanidis This homework set is due online at Sakai no later than 5:00 AM on Monday, October 24, 2011. Please submit the HTML fle together with any supporting PNG fles generated by MATLAB’s publish command from your script M-Fle (alternatively, you may copy-paste from the HTML Fle into Word, or submit a single MHT Fle). Late submissions will not be accepted. Please upload your Fles to Sakai under Assignments for week-6, not to the Drop Box. Please do the following problems: 1. DeFne the cell array of strings and row vectors of numbers: C = {’a’, ’bb’, ’ccc’, ’dddd’, ’eeeee’}; x = [6.715, -12.075, 7.172, 16.302, 4.889]; y = [-134.98869, 303.49235, 72.54042, -6.30549, 71.47429]; z = [14380, 0.00325, -7549, 13700, -0.00017]; Use fprintf to print the following table exactly as shown below. Use a for-loop to print the actual table entries (if your E-format prints as E+04 instead of E+004 , it would be OK.) xC y C z --------------------------------------------------- 6.715 a -134.98869 a +1.438E+004 -12.075 bb 303.49235 bb +3.250E-003 7.172 ccc 72.54042 ccc -7.549E+003 16.302 dddd -6.30549 dddd +1.370E+004 4.889 eeeee 71.47429 eeeee -1.700E-004 2. The National Weather Service (NWS) has developed the following formula for calculating the wind-chill temperature in terms of the physical temperature T (in degrees F o ) and wind speed V (mph): T chill = 35 . 74 + 0 . 6215 T - 35 . 75 V 0 . 16 + 0 . 4275 TV 0 . 16 (F o ) (1) A chart of wind-chill temperatures calculated from this formula is provided by NWS and can be obtained from the link below. Physical Temperature T (F) | 40 35 30 25 20 15 10 5 0 -5 -10 -15 -20 -25 -30 -35 -40 -45 V ------------------------------------------------------------------------------------------ 5 | 36 31 25 19 13 7 1 -5 -11 -16 -22 -28 -34 -40 -46 -52 -57 -63 10 | 34 27 21 15 9 3 -4 -10 -16 -22 -28 -35 -41 -47 -53 -59 -66 -72 15 | 32 25 19 13 6 -0 -7
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

prob06 - Homework Problems Week 6 440:127 Fall 2011 S. J....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online