mlGr10.tex \\

%%%%%%%%%%%%%%% Begin your Latex code %%%%%%%%%%%%%%%%%
% Just plain Latex code without pramble, macros etc.
Kirjan Anne Greenbaun - T.P. Chartier: Numerical Methods www-sivulla:\\
\href{http://academics.davidson.edu/math/chartier/Numerical/matlab.html}
{http://academics.davidson.edu/math/chartier/Numerical/matlab.html}\\ 
on m-tiedosto \texttt{plotTaylor.m}

Hae se sieltä tai ota tästä:

\begin{verbatim}
﻿%  Plot the first four Taylor polynomials for exp(x).

x = [-3:.01:2];                   % Set x values
fx = exp(x);
p0 = ones(size(x));               % Compute Taylor polynomials
p1 = p0 + x;
p2 = p1 + (x.^2)/2;
p3 = p2 + (x.^3)/6;
\end{verbatim}
\begin{verbatim}
subplot(2,2,1)                    % Plot results
plot(x,fx,'--', x,p0,'-');
legend('f(x)','P_0(x)')
title('plot of P_0(x) and f(x)')
subplot(2,2,2)
plot(x,fx,'--',x,p1,'-');
legend('f(x)','P_1(x)')
title('plot of P_1(x) and f(x)')
subplot(2,2,3)
plot(x,fx,'--',x,p2,'-');
legend('f(x)','P_2(x)')
title('plot of P_2(x) and f(x)')
subplot(2,2,4)
plot(x,fx,'--',x,p3,'-');
legend('f(x)','P_3(x)')
title('plot of P_3(x) and f(x)')

\end{verbatim}

Leikkaa/liimaa Matlab- tai Octave-komentoikkunaan ja selvitä ja omaksu kunkin komennon 
merkitys. \\
Täydennä komennot skriptiksi, joka piirtää lisäksi polynomit $P_4$ ja $P_5$.  Anna 
\texttt{subplot}- komennot muodossa \texttt{subplot(3,j,k)}.


%%%%%%%%%%%%%% End of your Latex code %%%%%%%%%%%%%%%%%% 
\textbf{Vaativuus:} 1  \\

\textbf{Tehtävän Latex-koodi:}\\
\href{../mlteht/mlGraphics/mlGr10.tex}{../mlteht/mlGraphics/mlGr10.tex}\\

%\textbf{Ratkaisu:}  \\
%\href{../mlteht/mlGraphics/ratkaisut/html/mlGr10R.html}{../mlteht/mlGraphics/ratkaisut/html/mlGr10R.html} \\
%\href{../mlteht/mlGraphics/ratkaisut/html/mlGr10R.pdf}{../mlteht/mlGraphics/ratkaisut/html/mlGr10R.pdf} \\
%\href{../mlteht/mlGraphics/ratkaisut/mlGr10R.m} {../mlteht/mlGraphics/ratkaisut/mlGr10R.m} \\
     

%%%%%%%%% Harvemmin esiintyviä %%%%%%%%%%%%%%%%%%%%%%%%%%%
%\textbf{Aputiedostoja,viitteitä}\\
%  \begin{itemize}\\
%    \item 
%  \href{../mlteht/mlGraphics/apusrc/mlGr10A.mw}{ Oppilaille: ohje-ja pohjatyöarkki (mw)} (Linkki mukaan mlGr000.tex-tiedostoon)\\
%\item
%\href{../mlteht/mlGraphics/apusrc/mlGr10Aope.tex}{ Opettajalle: Latex-lisäohjeita liitettäväksi tehtäväpaperiin}\\
%\end{itemize}\\
   
%\textbf{Vastaavanlaisia tehtäviä:}\\
   
%\begin{enumerate}\\
%\item Perusesim tähän kohtaan:\\
%\end{enumerate}\\

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

   
\textbf{Avainsanat, keywords:} mlGraphics, Matlab graphics, grafiikkaa Matlab:lla, plot, subplot, legend, Taylor polynomial


\hrule





