How to use audio amplitude to affect visual brightness?

It looks like it does (Not recommended) Write comma-separated value file - MATLAB csvwrite - MathWorks United Kingdom

However, if the pairs arent arranged vertically, then this function doesnt insert \r\n and the engine won’t import it.