MATLAB: Breaking a long line of code into two.

ellipsislong codeMATLABsyntax

I was trying to split the following line of code into two.
uiwait(msgbox(sprintf('Decryption complete!\n\nRetreived image has been saved to disk\n\nOutput File Name: ''Hidden_Image.png'''),'modal'));
I tried using the ellipsis operator (…) to do this, but I can't get it to work properly. Please help. Thanks

Best Answer

uiwait(msgbox(sprintf(['Decryption complete!\n\nRetreived image has ',...
'been saved to disk\n\nOutput File Name: ''Hidden_Image.png''']),'modal'));