untitled1 - fprintf%1/0f\n'A(greaterB disp'Problem 2...

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

View Full Document Right Arrow Icon
%%problem1 A= [55 62 60 61 63 65 62 59 58 56]; B= [54 59 62 64 68 68 62 59 57 53]; over60=sum(A>60); over60degree=find(A>60); fprintf('%1.0f\n',over60degree) disp 'temp of pond A, when it was >= to the temp of pond B, was:'
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: fprintf('%1/0f\n'A(greaterB)) disp 'Problem 2- Answers'; for x=[-5,3,15]; if(x<-1) y=exp(x+1); else if (-1<=x && x<15) y=2+cos(pi*x); else...
View Full Document

This note was uploaded on 03/24/2011 for the course ENGINEERIN 127 taught by Professor Finch during the Spring '08 term at Rutgers.

Ask a homework question - tutors are online