system_more_test SYSTEM_MORE_TEST Demonstrate a simple use of the "system" command, which allows MATLAB to invoke operating system commands. Command status was 0 Command output was %% SYSTEM_MORE_TEST tests the UNIX facility for issuing operating system commands. % % Discussion: % % MORE is a legal command on both UNIX and DOS systems, which prints out % part of a file. % % Modified: % % 19 July 2006 % % Author: % % John Burkardt % clear fprintf ( 1, '\n' ); fprintf ( 1, 'SYSTEM_MORE_TEST\n' ); fprintf ( 1, ' Demonstrate a simple use of the "system" command,\n' ); fprintf ( 1, ' which allows MATLAB to invoke operating system commands.\n' ); [ status, string ] = system ( 'more system_more_test.m' ); fprintf ( 1, '\n' ); fprintf ( 1, ' Command status was %d\n', status ); fprintf ( 1, ' Command output was %s\n', string ); fprintf ( 1, '\n' ); fprintf ( 1, 'SYSTEM_MORE_TEST:\n' ); fprintf ( 1, ' Normal end of execution.\n' ); SYSTEM_MORE_TEST: Normal end of execution.