Untitled - disp datesTNYabove32_TANCabove32 =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
clc TNY = [31 26 30 33 33 39 41 41 34 33 45 42 36 39 37 45 43 36 41 37 32 32 35 42 38 33 40 37 36 51 50]; TANC= [37 24 28 25 21 28 46 37 36 20 24 31 34 40 43 36 34 41 42 35 38 36 35 33 42 42 37 26 20 25 31]; 4 % How many days, and which dates in the month, was the temperature in both % cities above freezing (above 32degress F) TNYabove32_TANCabove32 = TNY>=32&TANC>=32; NdaysTNYabove32_NdaysTANCabove32 = sum(TNYabove32_TANCabove32) disp('These are the dates the temperature was above freezing in New York City.')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: disp(' ') datesTNYabove32_TANCabove32 = find(NdaysTNYabove32_NdaysTANCabove32); fprintf('January %6.0f\n', datesTNYabove32_TANCabove32) disp(' ') % Anchorage TANCabove32 = TANC>=32; NdaysTANCabove32 = sum(TANCabove32) disp('These are the dates the temperature was above freezing in Anchorage.') disp(' ') datesTANCabove32 = find(TANCabove32); fprintf('January %6.0f\n', datesTANCabove32)...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 1200 taught by Professor Staff during the Spring '11 term at Kennesaw.

Ask a homework question - tutors are online