Investigate writing tikz file directly instead of using matlab2tikz
Instead of first creating a Matlab figure then converting it to tikz, consider writing the tikz file directly.
Instead of first creating a Matlab figure then converting it to tikz, consider writing the tikz file directly.