This preview shows page 1. Sign up to view the full content.
Unformatted text preview: for x=-1:0.001:1; if x>=-1 & x<=-0.5 y1=-x^2-4*x+exp(-3*x); hold on plot(x,y1,'-b') elseif x>-0.5 & x<0.7; y2=-x^2+5; hold on plot (x,y2,'-') else 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