仔细看看help
system('command') calls upon the operating system to run command, for example dir or ls or a UNIX? shell script, and directs the output to the MATLAB? software. If command runs successfully, ans is 0. If command fails or does not exist on your operating system, ans is a nonzero value and an explanatory message appears.