Talk:MATLAB Programming/Inserting Newlines into Disp Warn and Error

However, if you're using MATLAB R2007a, this is the output you get: >> error('This error\nhas a newline.') ??? This error\nhas a newline.