Totally new to Matlab here so your help would be greatly appreciated
I have done two related matlab programs below. one is a hyperbola and the other is the elipse. How can I get the two of these as just one .m program. I want the elipse to be in the middle of the hyperbola.

thanks in advance.

% Program to plot the hyperbola% y^2/a^2 - x^2/b^2 = 1% The hyperbolae are open up/down, so that x is the independent variable% for plotting. (Using the form x^2/a^2 - y^2/b^2 = 1 requires that y be% the independent variable, which is awkward programming-wise.)clear % all variablesfigure(1), hold off % start a new figureset(gca,'FontSize',14) % adjust fontsizexmax = 30; ymax = 20;x = linspace(-xmax,xmax,1001); % array of x values for plot (why 1001?)a = 5; b = 3;y=sqrt(((x.^2)./(b^2)+1).*a^2); % corresponding y valuesplot(x,y)hold on % add to current plotplot(x,-y) % Plot other half of hyperbolaaxis([-xmax xmax -ymax ymax]) % specify axis limitsxlabel('x')ylabel('y')title(['Hyperbola $y^2/a^2 - x^2/b^2 = 1$; $a$ = ', num2str(a), ...', $b$ = ', num2str(b),'; (WR 1/21/08)'],'Interpreter','latex')% Add axesplot([0 0],[-ymax ymax],'k') % y axis (black line - k)plot([-xmax xmax],[0 0],'k') % x axis% Program to plot the elipse% y^2/a^2 - x^2/b^2 = 1clearfigure(1), hold off % start a new figureset(gca,'FontSize',14) % adjust fontsizexmax = 30; ymax = 20;x = linspace(-xmax,xmax,1001); % array of x values for plot (why 1001?)a = 5; b = 3;y=sqrt(((-x.^2)./(b^2)+1).*a^2); % corresponding y valuesplot(x,y)hold on % add to current plotplot(x,-y) % Plot other half of elipseaxis([-xmax xmax -ymax ymax]) % specify axis limitsxlabel('x')ylabel('y')title([elipse$y^2/a^2 + x^2/b^2 = 1$; $a$ = ', num2str(a), ...', $b$ = ', num2str(b),'; (WR 1/21/08)'],'Interpreter','latex')% Add axesplot([0 0],[-ymax ymax],'k') % y axis (black line - k)plot([-xmax xmax],[0 0],'k') % x axis

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

And don't forget to change the title.