$y_2 = y_{20}*exp(\lambda*t)$
$y_1 = y_{10}*exp(\lambda*t)+ y_{20}*t*exp(\lambda*t)$
I am struggling to reproduce the diagram corresponding to the equations above.
I have tried to code it in matlab but am unable to do so successfully. Can someone please explain where my code is wrong
thank you

You weren't very far from your objective. You hadn't "nice looking" results because you chose $\lambda >0$ giving divergent curves instead of convergent curves (converging to $0$).
Here is a convenient code :
giving the following figure :
The two families of curves have initial points (a,b) represented by little round shapes, with either $a=-1$ or $a=1$.
Reminder : we are in a case where
$$\binom{x}{y}=\exp(tA)\binom{a}{b}$$
with $$A:=\begin{pmatrix}L&1\\0&L\end{pmatrix} \ \ \implies \ \ \exp(tA)=\begin{pmatrix}\exp(Lt)&t \exp(Lt)\\0&\exp(Lt)\end{pmatrix}$$