This preview shows page 1. Sign up to view the full content.
Unformatted text preview: s for x=-1:0.01:1; if x<0 y1=-x^2-4*x+exp(-3*x); hold on plot(x,y1,'-b') elseif x==0 y2=-x^2+5; hold on plot (x,y2,'*') elseif x>0 y3=-x+log(x); hold on plot(x,y3,'-r') end end...
View Full Document
This note was uploaded on 04/05/2010 for the course CHEMENG 05078870 taught by Professor Mustafa during the Spring '10 term at Ege Üniversitesi.
- Spring '10