From: Amey Kulkarni on 21 Apr 2010 07:37 i hav written a program in matlab...i hav made the exe file for the same...i want to put the output of the program on the web site... i am using php passthru function for that.... but the output of the program comes in one line only... i want to put a newline in matlab program... can anyone help in this matter??
From: Wayne King on 21 Apr 2010 10:30 "Amey Kulkarni" <am16ey(a)gmail.com> wrote in message <hqmo13$k0k$1(a)fred.mathworks.com>... > i hav written a program in matlab...i hav made the exe file for the same...i want to put the output of the program on the web site... i am using php passthru function for that.... but the output of the program comes in one line only... i want to put a newline in matlab program... can anyone help in this matter?? Hi Amey, Depending on how your program is structured, is it as simple as including a fprintf() or sprintf() with the escape character '\n' ? fprintf('%s\n','hello'), fprintf('%s\n','and goodbye') or just fprintf('\n'); for a new line. Does that work? Wayne
|
Pages: 1 Prev: add binary constraints to portopt Next: 3D patches on a map |