Writing log statements to standard output with Mat

2019-02-06 21:06发布

We're starting Matlab from our Jenkins buildserver. As the build may take some time it would be nice to get some log-outputs while matlab is running. Is there a way to print text to standard output? disp, fprintf and java.lang.System.out.printline only write to the matlab console, not to standard output.

Using a logfile or a pipe won't help, as Jenkins only reads from standard-output during a build step.

How can we write log-statements to the standard output while matlab is running?

EDIT: We're running Matlab 2010b on Windows

8条回答
\"骚年 ilove
2楼-- · 2019-02-06 21:55

I didn't find a real solution. Mathworks created some wrapper tool. But this will only output the results after matlab has exited. You won't get any ouput during execution.

http://www.mathworks.de/support/solutions/en/data/1-ACT3YN/index.html?product=ML&solution=1-ACT3YN

So I'll have live without real live-output...

查看更多
Bombasti
3楼-- · 2019-02-06 21:57

You can use the diary mode. Not sure if it will fit your specific implementation.

http://www.mathworks.com/help/techdoc/ref/diary.html

查看更多
登录 后发表回答