I have two plots I created in matlab / octave I would like them to cross at x=4 or any other point on x I choose. How can I go about doing this in matlab or octave?
Example code:
x = linspace(0,2*pi,1000);
y = 1./exp(x); %
%subplot(2,1,1);
plot(x,y,'r')
title('e(x)')
hold on
y2 = -y+.09; %
%subplot(2,1,2);
plot(x,y2,'b')
Thanks