Open jalexcole opened 8 years ago
Try that command with single, rather than double, quotes. MATLAB treats them differently, and I believe the correct syntax for the fprintf() function uses single quotes.
fprintf( '%d' , decimal )
This is fixed in the package https://atom.io/packages/language-matlab-octave. That's still being maintained for MATLAB syntax highlighting fixes. It uses the shared highlighting grammar: https://github.com/mathworks/MATLAB-Language-grammar/
The same grammar is used here on GitHub and handles it properly:
fprintf(" %d" , decimal) % a comment
fprintf(" %d" , decimal) comments everything after % so d" , decimal) looks commented out