bttg7 - for x=-1:0.001:1; if x>=-1 & x<=-0.5...

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

View Full Document Right Arrow Icon
% bttg6 for x=-1:0.001:1; y1=-x^2-4*x+exp(-3*x); hold on subplot 221 plot (x,y1) elseif x>-0.5 & x y2=-x^2+5; hold on subplot 222 plot (x,y2,'-') else y3=-x+log(x); hold on subplot 223 plot(x,y3) end end subplot 224
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

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.

Ask a homework question - tutors are online