Macroscopic model: Matlab compatibility (partial)