stdout
Returns the numeric file ID corresponding to the standard output stream of the application console mode.
Syntax
stdout()
Example
Example using stdin and stdout in a script run by the Console program:
fprintf(stdout(), 'fileID associated to stdin is %d\n', stdin())
fprintf(stdout(), 'fileID associated to stdout is %d\n', stdout())
% now use stdin to retrieve input
fprintf(stdout(), 'enter string:');
fgetl(stdin)
fprintf(stdout(), 'enter string:');
reply = fgets(stdin())
fileID associated to stdin is 0
fileID associated to stdout is 1
enter string:first
ans = first
enter string:second
reply = second