I use the matlab prettifier package with the matlab editor option to compile a file containing matlab code in LaTeX. Question: is it possible to somehow insert a LaTeX-like command for a single character in the original matlab file/ code and interpret it accordingly via the aforementioned package while compiling in LaTeX?
Original .m code to be imported:
Quantity X [micrometer] Data row 1 Data row 2 Data row N
I basically don't want to have micrometer in the compiled .pdf, but the actual greek character. I am aware of some "escape" options for the listings package, but I'm not quite sure how that would work in combination with the matlab prettifier package. Another possible option would be the mcode package, which enforces literate interpretations, but that package doesn't seem to produce an output that is as attractive as the one coming out of the matlab prettifier package. Any help would be greatly appreciated!