The purpose of this submission is not explained anywhere. Therefore a user has to guess what the three files are used for. The M-function macro_converter causes a bunch of MLint warnings and does not contain a help section or comments. In consequence I think, that this submission is neither useful or usable.
Please, Joseph, when you think that this function is useful for others, explain the usage in detail here and in a standard help section on top of the function. Care for all MLint warnings, e.g. call the main function as the M-file. Consider the C99 comment style "//" and mention, for which purpose you have created this program. Thanks.