Converting matlab figur into tikz plot
1) download matlab add on
2) use matlab command : matlab2tikz();
3) run tikz code in latex
4) if following error occur -then click this link
Tex Capacity Exeedeed Sorry